clearer if statement

master
Aevann 2023-05-06 11:39:56 +03:00
parent 2ff85ad967
commit d40446075d
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def marseys(v:User):
marseys = marseys.order_by(Emoji.name, Emoji.count.desc()) marseys = marseys.order_by(Emoji.name, Emoji.count.desc())
elif sort == "added_on": elif sort == "added_on":
marseys = marseys.order_by(nullslast(Emoji.created_utc.desc()), Emoji.count.desc()) marseys = marseys.order_by(nullslast(Emoji.created_utc.desc()), Emoji.count.desc())
else: # implied sort == "usage" elif sort == "usage":
marseys = marseys.order_by(Emoji.count.desc(), User.username) marseys = marseys.order_by(Emoji.count.desc(), User.username)
page = get_page() page = get_page()