]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Count XPM as vanilla as well. glicko
authorAnt Zucaro <azucaro@gmail.com>
Mon, 25 Dec 2017 19:31:01 +0000 (14:31 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 25 Dec 2017 19:31:01 +0000 (14:31 -0500)
xonstat/views/submission.py

index 135a08f799afc4c73f6d6b32ede55792d8632e32..782a5573a6b5fe9e4baf725848f95a559880535b 100644 (file)
@@ -254,7 +254,7 @@ def game_category(submission):
     insta_allowed_weapons = {"vaporizer", "blaster"}
     overkill_allowed_weapons = {"hmg", "vortex", "shotgun", "blaster", "machinegun", "rpc"}
 
-    if mod == "Xonotic":
+    if mod == "Xonotic" or mod == "XPM":
         if len(submission.weapons - vanilla_allowed_weapons) == 0:
             return "vanilla"
     elif mod == "InstaGib":