]> de.git.xonotic.org Git - xonotic/xonstat.git/commit - xonstat/__init__.py
Whitelist rank game types in the view. Fixes #162.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 23 Jan 2016 15:08:41 +0000 (10:08 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 23 Jan 2016 15:08:41 +0000 (10:08 -0500)
commit0ba0ba7adeb195c10985f2c48ce7c97f2eb0e714
tree3244b94bf4ab8fa19773ec33c772d4d6b9f5dda5
parent468d9494f871802b02f7d01b6580342ad2f82622
Whitelist rank game types in the view. Fixes #162.

The game types where you could view ranks were previously controlled by a
regular expression check within the route. This was completely NOT obvious to
troubleshoot. This moves them to within the view, which is much easier to
control. Additionally, a 404-check is added for malformed values.
xonstat/__init__.py
xonstat/views/game.py