From 5107a580286ad449249f2673641a7e25e191750e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 31 Jul 2018 19:46:39 +0200 Subject: [PATCH] Ordered minis2 --- webserver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webserver.py b/webserver.py index 041ab740..a982138e 100644 --- a/webserver.py +++ b/webserver.py @@ -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() elif name == "dota": 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": 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": 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": 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": game_name = "Steam" query = db_session.query(db.Steam).order_by(db.Steam.persona_name).all()