Skip to content

Commit

Permalink
added count fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalTiwary committed Sep 23, 2024
1 parent 64a9b1b commit bac533f
Show file tree
Hide file tree
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
Expand Up @@ -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 = (
Expand Down
9 changes: 7 additions & 2 deletions backend/workspaces/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit bac533f

Please sign in to comment.