]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Get rid of some commented, unused code.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 8 Nov 2015 23:12:15 +0000 (18:12 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 8 Nov 2015 23:12:15 +0000 (18:12 -0500)
xonstat/views/player.py

index 4b4017f171d7efb762ac7dc487d2083b366e9737..bf877be6bd17d38b93ac251ea8064e5dc84fd06a 100644 (file)
@@ -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),
         }