Compare commits

...

1 Commits

Author SHA1 Message Date
NarayanBavisetti
050d0f8fc8 fix: priority ordering 2023-08-18 18:22:58 +05:30

View File

@ -1083,6 +1083,7 @@ class WorkspaceUserProfileStatsEndpoint(BaseAPIView):
.filter(**filters) .filter(**filters)
.values("priority") .values("priority")
.annotate(priority_count=Count("priority")) .annotate(priority_count=Count("priority"))
.filter(priority_count__gte=1)
.annotate( .annotate(
priority_order=Case( priority_order=Case(
*[ *[