]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Reorder views for proper precedence.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 18 Aug 2013 18:42:10 +0000 (14:42 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 18 Aug 2013 18:42:10 +0000 (14:42 -0400)
xonstat/__init__.py

index 2ddf5095171e02b3cc454d02e2d970a897e0e97e..bfe2a9fd7eeef24c2261831393e1df5a80e01d97 100644 (file)
@@ -45,13 +45,13 @@ def main(global_config, **settings):
     config.add_route("player_game_index_json", "/player/{player_id:\d+}/games.json")
     config.add_view(player_game_index_json, route_name="player_game_index_json", renderer="jsonp")
 
+    config.add_route("player_info",      "/player/{id:\d+}")
+    config.add_view(player_info,      route_name="player_info",      renderer="player_info.mako")
+
     #config.add_route("player_hashkey_info_text", "/player/me")
     config.add_route("player_hashkey_info_text", "/player/{hashkey}")
     config.add_view(player_hashkey_info_text, route_name="player_hashkey_info_text", renderer="player_hashkey_info_text.mako")
 
-    config.add_route("player_info",      "/player/{id:\d+}")
-    config.add_view(player_info,      route_name="player_info",      renderer="player_info.mako")
-
     config.add_route("player_info_json", "/player/{id:\d+}.json")
     config.add_view(player_info_json, route_name="player_info_json", renderer="jsonp")