From: Ant Zucaro Date: Thu, 18 Dec 2014 02:57:44 +0000 (-0500) Subject: Order player caps by date. Fixes #147. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5e124876833fb20483bbbd3a40f1fa5936d83397;p=xonotic%2Fxonstat.git Order player caps by date. Fixes #147. --- 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)