From b17e6d25e4a8bff4194f8201e55a826e010efefb Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sat, 16 Jun 2018 09:53:16 -0400 Subject: [PATCH] Allow 1-player CTS matches to be recorded. --- xonstat/views/submission.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index 085ed2b..8117bd4 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -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 -- 2.39.2