]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Submission no longer has a meta attribute!
authorAnt Zucaro <azucaro@gmail.com>
Tue, 7 Feb 2017 01:40:39 +0000 (20:40 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 7 Feb 2017 01:40:39 +0000 (20:40 -0500)
xonstat/views/submission.py

index 89c43d1c03d4366e0bdacb4c15fe1381b633fce7..0307ca13e92a9a1d216920e2dfde1522ee365edc 100644 (file)
@@ -253,7 +253,7 @@ class Submission(object):
 
 def elo_submission_category(submission):
     """Determines the Elo category purely by what is in the submission data."""
-    mod = submission.meta.get("O", "None")
+    mod = submission.mod
 
     vanilla_allowed_weapons = {"shotgun", "devastator", "blaster", "mortar", "vortex", "electro",
                                "arc", "hagar", "crylink", "machinegun"}