diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-30 22:38:25 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-30 22:38:25 +0200 |
| commit | 9e4798c68a0f83bc7fecbf94c949c63eb934c2a0 (patch) | |
| tree | 7ee2b8d0a5b2a6a2716e4229274390cbbfad9e9a | |
| parent | 0b45709b0fd5973dd85d53089c8c3f2f3abf60e0 (diff) | |
| download | analyzer-9e4798c68a0f83bc7fecbf94c949c63eb934c2a0.tar.gz analyzer-9e4798c68a0f83bc7fecbf94c949c63eb934c2a0.zip | |
ignore matches with <3 participants
| -rw-r--r-- | worker.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |
