From: Ant Zucaro Date: Sat, 21 Apr 2012 15:04:51 +0000 (-0400) Subject: The latest games need to be at the end of the array, thus no desc. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aeb88e0314efee7b784f493df5dd9eaffdb653f2;p=xonotic%2Fxonstat.git The latest games need to be at the end of the array, thus no desc. --- diff --git a/xonstat/views/player.py b/xonstat/views/player.py index cb2087b..1a0d78f 100755 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -136,7 +136,7 @@ def get_accuracy_stats(player_id, weapon_cd, games): raw_accs = DBSession.query(PlayerWeaponStat.hit, PlayerWeaponStat.fired).\ filter(PlayerWeaponStat.player_id == player_id).\ filter(PlayerWeaponStat.weapon_cd == weapon_cd).\ - order_by(PlayerWeaponStat.create_dt.desc()).\ + order_by(PlayerWeaponStat.create_dt).\ limit(games).\ all()