forked from github/plane
fix: priority ordering
This commit is contained in:
parent
d825dc5579
commit
050d0f8fc8
@ -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(
|
||||||
*[
|
*[
|
||||||
|
Loading…
Reference in New Issue
Block a user