From: Ant Zucaro Date: Sun, 8 Nov 2015 23:12:15 +0000 (-0500) Subject: Get rid of some commented, unused code. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3c5ecef2ec6f94f57162d8c4a999df58a4fed548;p=xonotic%2Fxonstat.git Get rid of some commented, unused code. --- diff --git a/xonstat/views/player.py b/xonstat/views/player.py index 4b4017f..bf877be 100644 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -989,29 +989,6 @@ def player_captimes_data(request): player = DBSession.query(Player).filter_by(player_id=player_id).one() - #pct_q = DBSession.query('fastest_cap', 'create_dt', 'player_id', 'game_id', 'map_id', - # 'map_name', 'server_id', 'server_name').\ - # from_statement( - # "SELECT ct.fastest_cap, " - # "ct.create_dt, " - # "ct.player_id, " - # "ct.game_id, " - # "ct.map_id, " - # "m.name map_name, " - # "g.server_id, " - # "s.name server_name " - # "FROM player_map_captimes ct, " - # "games g, " - # "maps m, " - # "servers s " - # "WHERE ct.player_id = :player_id " - # "AND g.game_id = ct.game_id " - # "AND g.server_id = s.server_id " - # "AND m.map_id = ct.map_id " - # #"ORDER BY ct.fastest_cap " - # "ORDER BY ct.create_dt desc" - # ).params(player_id=player_id) - try: pct_q = DBSession.query(PlayerCaptime.fastest_cap, PlayerCaptime.create_dt, PlayerCaptime.player_id, PlayerCaptime.game_id, PlayerCaptime.map_id, @@ -1046,7 +1023,6 @@ def player_captimes_data(request): 'player_id':player_id, 'player':player, 'captimes':player_captimes, - #'player_url':request.route_url('player_info', id=player_id), }