From 7fd775ab059afa3941c2fc9fdaf0d13e7403e4ba Mon Sep 17 00:00:00 2001 From: pablohashescobar <118773738+pablohashescobar@users.noreply.github.com> Date: Wed, 22 Mar 2023 01:32:51 +0530 Subject: [PATCH] chore: update the endpoint to return last 6 months data (#453) --- apiserver/plane/api/views/workspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/plane/api/views/workspace.py b/apiserver/plane/api/views/workspace.py index 4ab921694..90c408b13 100644 --- a/apiserver/plane/api/views/workspace.py +++ b/apiserver/plane/api/views/workspace.py @@ -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")