Skip to content

Commit

Permalink
Fix fetch_best query
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Sep 23, 2023
1 parent 1dd782d commit f1c7201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/repositories/scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def fetch_best(
query = query.filter(DBBeatmap.status == 1) \
.join(DBScore.beatmap)

return query.all()
return query.order_by(DBScore.pp.desc()) \
.all()

def fetch_personal_best(
beatmap_id: int,
Expand Down

0 comments on commit f1c7201

Please sign in to comment.