fix: priority ordering

This commit is contained in:
NarayanBavisetti 2023-08-18 18:22:58 +05:30
parent d825dc5579
commit 050d0f8fc8

View File

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