Skip to content

Commit

Permalink
Fix score restoration
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Dec 5, 2023
1 parent 60267d7 commit 6f1fd06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/repositories/scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def restore_hidden_scores(user_id: int):
.filter(DBScore.user_id == user_id) \
.filter(DBScore.mods == mods) \
.filter(DBScore.status == -1) \
.order_by(DBScore.total_score) \
.order_by(DBScore.pp.desc()) \
.first()

if not best_score:
Expand Down

0 comments on commit 6f1fd06

Please sign in to comment.