From: Ant Zucaro Date: Sat, 17 Aug 2013 12:50:37 +0000 (-0400) Subject: Player Elo view by hashkey. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb54888173e7718cbc33a09d796bc8795fef887a;p=xonotic%2Fxonstat.git Player Elo view by hashkey. --- diff --git a/xonstat/__init__.py b/xonstat/__init__.py index 49493d8..af9f2fc 100644 --- a/xonstat/__init__.py +++ b/xonstat/__init__.py @@ -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")