]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Order player caps by date. Fixes #147.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 18 Dec 2014 02:57:44 +0000 (21:57 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 18 Dec 2014 02:57:44 +0000 (21:57 -0500)
xonstat/views/player.py

index fc110d648856a53ea2e5a10a9076a9ed94cd071a..b38fcf2b7e02678c760b640e71b56e301a4a7cbc 100644 (file)
@@ -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)