From: Ant Zucaro Date: Sat, 16 Jun 2018 13:53:16 +0000 (-0400) Subject: Allow 1-player CTS matches to be recorded. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b17e6d25e4a8bff4194f8201e55a826e010efefb;p=xonotic%2Fxonstat.git Allow 1-player CTS matches to be recorded. --- 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