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 89c43d1..0307ca1 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"}