Skip to content

Commit

Permalink
Sort by number of items not passing, so that items with less guidelin…
Browse files Browse the repository at this point in the history
…es show up nicer
  • Loading branch information
razzeee committed Dec 22, 2024
1 parent 94ec1a7 commit e732415
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,8 @@ def status_summarized(
# sort by review_requested, passed, then by weekly downloads
.order_by(
func.max(QualityModerationRequest.created_at).desc().nulls_last(),
func.sum(func.cast(QualityModeration.passed, Integer)).desc(),
func.count(Guideline.id)
- func.sum(func.cast(~QualityModeration.passed, Integer)),
Apps.installs_last_7_days.desc(),
)
)
Expand Down

0 comments on commit e732415

Please sign in to comment.