Skip to content

Commit

Permalink
Merge pull request #1115 from AI4Bharat/sup_cumulative_changes
Browse files Browse the repository at this point in the history
added count fix
ishvindersethi22 authored Sep 23, 2024
2 parents 64a9b1b + bac533f commit 36ae80b
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions backend/organizations/views.py
Original file line number Diff line number Diff line change
@@ -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 = (
9 changes: 7 additions & 2 deletions backend/workspaces/views.py
Original file line number Diff line number Diff line change
@@ -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 = (

0 comments on commit 36ae80b

Please sign in to comment.