fix: priority ordering (#1908)
This commit is contained in:
parent
d825dc5579
commit
2f39181eb7
1 changed files with 1 additions and 0 deletions
|
|
@ -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(
|
||||
*[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue