mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
Ordered minis2
This commit is contained in:
parent
4a0115bb78
commit
5107a58028
1 changed files with 4 additions and 4 deletions
|
@ -181,16 +181,16 @@ def page_game(name: str):
|
||||||
query = db_session.query(db.RocketLeague).join(db.Steam).order_by(db.RocketLeague.solo_std_rank).all()
|
query = db_session.query(db.RocketLeague).join(db.Steam).order_by(db.RocketLeague.solo_std_rank).all()
|
||||||
elif name == "dota":
|
elif name == "dota":
|
||||||
game_name = "Dota 2"
|
game_name = "Dota 2"
|
||||||
query = db_session.query(db.Dota).join(db.Steam).order_by(db.Dota.rank_tier.desc()).all()
|
query = db_session.query(db.Dota).join(db.Steam).order_by(db.Dota.rank_tier.desc().nullslast()).all()
|
||||||
elif name == "lol":
|
elif name == "lol":
|
||||||
game_name = "League of Legends"
|
game_name = "League of Legends"
|
||||||
query = db_session.query(db.LeagueOfLegends).order_by(db.LeagueOfLegends.solo_division.desc()).all()
|
query = db_session.query(db.LeagueOfLegends).order_by(db.LeagueOfLegends.solo_division.desc().nullslast()).all()
|
||||||
elif name == "osu":
|
elif name == "osu":
|
||||||
game_name = "osu!"
|
game_name = "osu!"
|
||||||
query = db_session.query(db.Osu).order_by(db.Osu.mania_pp.desc()).all()
|
query = db_session.query(db.Osu).order_by(db.Osu.mania_pp.desc().nullslast()).all()
|
||||||
elif name == "ow":
|
elif name == "ow":
|
||||||
game_name = "Overwatch"
|
game_name = "Overwatch"
|
||||||
query = db_session.query(db.Overwatch).order_by(db.Overwatch.rank.desc()).all()
|
query = db_session.query(db.Overwatch).order_by(db.Overwatch.rank.desc().nullslast()).all()
|
||||||
elif name == "steam":
|
elif name == "steam":
|
||||||
game_name = "Steam"
|
game_name = "Steam"
|
||||||
query = db_session.query(db.Steam).order_by(db.Steam.persona_name).all()
|
query = db_session.query(db.Steam).order_by(db.Steam.persona_name).all()
|
||||||
|
|
Loading…
Reference in a new issue