Skip to content

Commit

Permalink
Fix leaderboard ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOriginalSoni committed Nov 1, 2024
1 parent 4ae69f0 commit 26793bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myus/myus/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def leaderboard(request, hunt_id: int, slug: Optional[str] = None):

# print(teams.query)
if hunt.leaderboard_style == Hunt.LeaderboardStyle.SPEEDRUN:
teams = teams.order_by("-score", "-solve_count", "solve_time", "last_solve")
teams = teams.order_by("-score", "solve_time", "last_solve")
template = "leaderboard_SPD.html"
else:
teams = teams.order_by("-score", "-solve_count", "last_solve")
Expand Down

0 comments on commit 26793bc

Please sign in to comment.