summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-06-30 22:38:25 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-06-30 22:38:25 +0200
commit9e4798c68a0f83bc7fecbf94c949c63eb934c2a0 (patch)
tree7ee2b8d0a5b2a6a2716e4229274390cbbfad9e9a
parent0b45709b0fd5973dd85d53089c8c3f2f3abf60e0 (diff)
downloadanalyzer-9e4798c68a0f83bc7fecbf94c949c63eb934c2a0.tar.gz
analyzer-9e4798c68a0f83bc7fecbf94c949c63eb934c2a0.zip
ignore matches with <3 participants
-rw-r--r--worker.py4
1 files changed, 3 insertions, 1 deletions
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