]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Player Elo view by hashkey.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 17 Aug 2013 12:50:37 +0000 (08:50 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 17 Aug 2013 12:50:37 +0000 (08:50 -0400)
xonstat/__init__.py

index 49493d8cfb53bc5dda2406da3be9598b92c59ad7..af9f2fcb1e4af369d59e92f182f05f904f1ba733 100644 (file)
@@ -54,10 +54,10 @@ def main(global_config, **settings):
     config.add_route("player_info_json", "/player/{id:\d+}.json")
     config.add_view(player_info_json, route_name="player_info_json", renderer="jsonp")
 
-    config.add_route("player_elo_info_text", "/elo/{hashkey}")
+    config.add_route("player_elo_info_text", "/player/{hashkey}/elo.txt")
     config.add_view(player_elo_info_text, route_name="player_elo_info_text", renderer="player_elo_info_text.mako")
 
-    config.add_route("player_elo_info_json", "/elo/{hashkey}.json") ## FIXME - doesn't seem to work?
+    config.add_route("player_elo_info_json", "/player/{hashkey}/elo.json") ## FIXME - doesn't seem to work?
     config.add_view(player_elo_info_json, route_name="player_elo_info_json", renderer="jsonp")
 
     config.add_route("player_accuracy",      "/player/{id:\d+}/accuracy")