chore: update the endpoint to return last 6 months data (#453)
This commit is contained in:
parent
e5f8c94de8
commit
7fd775ab05
1 changed files with 1 additions and 1 deletions
|
|
@ -591,7 +591,7 @@ class UserActivityGraphEndpoint(BaseAPIView):
|
|||
IssueActivity.objects.filter(
|
||||
actor=request.user,
|
||||
workspace__slug=slug,
|
||||
created_at__date__gte=date.today() + relativedelta(months=-3),
|
||||
created_at__date__gte=date.today() + relativedelta(months=-6),
|
||||
)
|
||||
.annotate(created_date=Cast("created_at", DateField()))
|
||||
.values("created_date")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue