]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
The latest games need to be at the end of the array, thus no desc.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 21 Apr 2012 15:04:51 +0000 (11:04 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 21 Apr 2012 15:04:51 +0000 (11:04 -0400)
xonstat/views/player.py

index cb2087b12b0af4206bea56a7611d8116244ca0e4..1a0d78ff00d54d8cba7c2ba457f417e77af923ca 100755 (executable)
@@ -136,7 +136,7 @@ def get_accuracy_stats(player_id, weapon_cd, games):
         raw_accs = DBSession.query(PlayerWeaponStat.hit, PlayerWeaponStat.fired).\\r
                 filter(PlayerWeaponStat.player_id == player_id).\\r
                 filter(PlayerWeaponStat.weapon_cd == weapon_cd).\\r
-                order_by(PlayerWeaponStat.create_dt.desc()).\\r
+                order_by(PlayerWeaponStat.create_dt).\\r
                 limit(games).\\r
                 all()\r
 \r