Skip to content

Commit

Permalink
Include mods pb's in fetch_pp_record
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Dec 18, 2023
1 parent b080cae commit 5803d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/repositories/scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,13 +459,13 @@ def fetch_pp_record(
if mods == None:
return session.query(DBScore) \
.filter(DBScore.mode == mode) \
.filter(DBScore.status == 3) \
.filter(DBScore.status > 2) \
.order_by(DBScore.pp.desc()) \
.first()

return session.query(DBScore) \
.filter(DBScore.mode == mode) \
.filter(DBScore.status == 3) \
.filter(DBScore.status > 2) \
.filter(DBScore.mods == mods) \
.order_by(DBScore.pp.desc()) \
.first()
Expand Down

0 comments on commit 5803d57

Please sign in to comment.