From 5e124876833fb20483bbbd3a40f1fa5936d83397 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Wed, 17 Dec 2014 21:57:44 -0500 Subject: [PATCH] Order player caps by date. Fixes #147. --- xonstat/views/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonstat/views/player.py b/xonstat/views/player.py index fc110d6..b38fcf2 100644 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -1037,7 +1037,7 @@ def player_captimes_data(request): filter(PlayerCaptime.game_id==Game.game_id).\ filter(PlayerCaptime.map_id==Map.map_id).\ filter(Game.server_id==Server.server_id).\ - order_by(expr.asc(PlayerCaptime.fastest_cap)) # or PlayerCaptime.create_dt + order_by(expr.desc(PlayerCaptime.create_dt)) player_captimes = Page(pct_q, current_page, items_per_page=20, url=page_url) -- 2.39.2