From bac533f8a71ad80dce282d14b68a1e984a2de1a2 Mon Sep 17 00:00:00 2001 From: Kunal Tiwary Date: Mon, 23 Sep 2024 08:08:29 +0000 Subject: [PATCH] added count fix --- backend/organizations/views.py | 9 +++++++-- backend/workspaces/views.py | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/backend/organizations/views.py b/backend/organizations/views.py index 219e79015..c8ce73c0e 100644 --- a/backend/organizations/views.py +++ b/backend/organizations/views.py @@ -2994,11 +2994,16 @@ def cumulative_tasks_count(self, request, pk=None): else: reviewer_task_count = ( - reviewer_tasks.count() + reviewer_tasks_exported.count() + reviewer_tasks.count() + + reviewer_tasks_exported.count() + + supercheck_tasks_exported.count() ) annotation_tasks_count = ( - annotation_tasks.count() + annotation_tasks_exported.count() + annotation_tasks.count() + + annotation_tasks_exported.count() + + reviewer_tasks_exported.count() + + supercheck_tasks_exported.count() ) supercheck_tasks_count = ( diff --git a/backend/workspaces/views.py b/backend/workspaces/views.py index 5843a91d8..367a0f93f 100644 --- a/backend/workspaces/views.py +++ b/backend/workspaces/views.py @@ -1655,11 +1655,16 @@ def cumulative_tasks_count_all(self, request, pk=None): else: reviewer_task_count = ( - reviewer_tasks.count() + reviewer_tasks_exported.count() + reviewer_tasks.count() + + reviewer_tasks_exported.count() + + supercheck_tasks_exported.count() ) annotation_tasks_count = ( - annotation_tasks.count() + annotation_tasks_exported.count() + annotation_tasks.count() + + annotation_tasks_exported.count() + + reviewer_tasks_exported.count() + + supercheck_tasks_exported.count() ) supercheck_tasks_count = (