From: Ant Zucaro Date: Sun, 11 Jan 2015 14:35:03 +0000 (-0500) Subject: Force the GET param to be an int. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0be3b67db1eb5dd646737a97cfd8e0adf462a6cf;p=xonotic%2Fxonstat.git Force the GET param to be an int. --- diff --git a/xonstat/views/map.py b/xonstat/views/map.py index 2d3957a..41749d0 100644 --- a/xonstat/views/map.py +++ b/xonstat/views/map.py @@ -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(