Skip to content

Commit

Permalink
feat(clans): order accounts by commits count in overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
Hojagulyyev committed Nov 15, 2023
1 parent 59e4fb6 commit 2ef7372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/clans/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def overview(request):
diaries_count=Count("diaries", distinct=True),
diary_commits_count=Count("diaries__commits", distinct=True),
)
.order_by("-level")
.order_by("-diary_commits_count")
)
paginated_account_queryset = paginate(account_queryset, page, page_size)

Expand Down

0 comments on commit 2ef7372

Please sign in to comment.