+ game_stats = {}\r
+ (game_stats['avg_rank'], game_stats['total_kills'], \r
+ game_stats['total_deaths'], game_stats['total_suicides'], \r
+ game_stats['total_score'], game_stats['total_time'], \r
+ game_stats['total_held'], game_stats['total_captures'], \r
+ game_stats['total_pickups'],game_stats['total_drops'], \r
+ game_stats['total_returns'], game_stats['total_collects'], \r
+ game_stats['total_destroys'], game_stats['total_dhk'], \r
+ game_stats['total_pushes'], game_stats['total_pushed'], \r
+ game_stats['total_carrier_frags'], \r
+ game_stats['total_alivetime']) = DBSession.\\r
+ query("avg_rank", "total_kills", "total_deaths", \r
+ "total_suicides", "total_score", "total_time", "total_held",\r
+ "total_captures", "total_pickups", "total_drops", \r
+ "total_returns", "total_collects", "total_destroys", \r
+ "total_dhk", "total_pushes", "total_pushed", \r
+ "total_carrier_frags", "total_alivetime").\\r
+ from_statement(\r
+ "select round(avg(rank)) avg_rank, sum(kills) total_kills, "\r
+ "sum(deaths) total_deaths, sum(suicides) total_suicides, "\r
+ "sum(score) total_score, sum(time) total_time, "\r
+ "sum(held) total_held, sum(captures) total_captures, "\r
+ "sum(pickups) total_pickups, sum(drops) total_drops, "\r
+ "sum(returns) total_returns, sum(collects) total_collects, "\r
+ "sum(destroys) total_destroys, sum(destroys_holding_key) total_dhk, "\r
+ "sum(pushes) total_pushes, sum(pushed) total_pushed, "\r
+ "sum(carrier_frags) total_carrier_frags, "\r
+ "sum(alivetime) total_alivetime "\r
+ "from player_game_stats "\r
+ "where player_id=:player_id"\r
+ ).params(player_id=player_id).one()\r
+\r
+ for (key,value) in game_stats.items():\r
+ if value == None:\r
+ game_stats[key] = '-'\r
+\r