]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Force the GET param to be an int.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 11 Jan 2015 14:35:03 +0000 (09:35 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 11 Jan 2015 14:35:03 +0000 (09:35 -0500)
xonstat/views/map.py

index 2d3957a7dd0a82ab6ba0e47dcfe3d4f9dd56737c..41749d074dce5cd957f932223f20e69436b86ea6 100644 (file)
@@ -47,7 +47,7 @@ def map_index_json(request):
 
 
 def _map_info_data(request):
-    map_id = request.matchdict['id']
+    map_id = int(request.matchdict['id'])
 
     try:
         leaderboard_lifetime = int(