diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-02-03 19:26:33 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-02-03 19:26:33 +0100 |
| commit | 9a583095fb43904b2363ee7868aff71c39f1f3f0 (patch) | |
| tree | fa8929831608c738b10f83db91e07cfb2a0ea8de | |
| parent | e35a5070493a4d2ce27dacf1d52d5952b5b46237 (diff) | |
| download | analyzer-master.tar.gz analyzer-master.zip | |
| -rw-r--r-- | rater.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -76,6 +76,10 @@ def rate_match(match): trueskill_column = "trueskill_blitz" if match.game_mode == "br": trueskill_column = "trueskill_br" + if match.game_mode == "5v5_casual": + trueskill_column = "trueskill_5v5_casual" + if match.game_mode == "5v5_ranked": + trueskill_column = "trueskill_5v5_ranked" if trueskill_column is None: logger.info("got unsupported game mode %s", match.game_mode) return @@ -84,9 +88,7 @@ def rate_match(match): matchup = [] anyAfk = False - if len(match.rosters) != 2 \ - or len(match.rosters[0].participants) != 3 \ - or len(match.rosters[1].participants) != 3: + if len(match.rosters) != 2: logger.error("got an invalid matchup %s", match.api_id) anyAfk = True |
