]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Allow 1-player CTS matches to be recorded.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 16 Jun 2018 13:53:16 +0000 (09:53 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 16 Jun 2018 13:53:16 +0000 (09:53 -0400)
xonstat/views/submission.py

index 085ed2b1f8d04cfc3a7bc3fbc171259e54631782..8117bd4053b18fb887436aeb978602d3a5c2b09c 100644 (file)
@@ -346,6 +346,10 @@ def has_minimum_real_players(settings, submission):
     except:
         minimum_required_players = 2
 
+    # Make an exception for CTS since it can be done by individuals and there is no Elo anyway
+    if submission.game_type_cd == "cts":
+        minimum_required_players = 1
+
     return len(submission.humans) >= minimum_required_players