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 085ed2b..8117bd4 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