From 9e4798c68a0f83bc7fecbf94c949c63eb934c2a0 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 30 Jun 2017 22:38:25 +0200 Subject: ignore matches with <3 participants --- worker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worker.py b/worker.py index 5854411..ead070f 100644 --- a/worker.py +++ b/worker.py @@ -158,7 +158,9 @@ def process(): if participant.went_afk == 1: anyAfk = True break - if len(match.rosters) < 2: + if len(match.rosters) < 2 \ + or len(match.rosters[0].participants) < 3 \ + or len(match.rosters[1].participants) < 3: logging.error("got an invalid matchup %s", match.api_id) match.trueskill_quality = 0 continue -- cgit v1.3.1