diff options
author | emkael <emkael@tlen.pl> | 2017-05-31 16:27:19 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-05-31 16:28:54 +0200 |
commit | fa16d375b07e05ba6b023df6d53b31e6f0f0d395 (patch) | |
tree | 333f2550092ee79ad1af50ddcca28ae001d75b89 /playoff.py | |
parent | 20849be3575f57dacfbd8bfffefba1045b1aaf64 (diff) |
Towels in games which have not been played at all are now recognized
Diffstat (limited to 'playoff.py')
-rw-r--r-- | playoff.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -179,7 +179,7 @@ def get_match_info(match): try: towels = db_fetch(match['database'], p_sql.TOWEL_COUNT, (match['table'], match['round'])) - row = db_fetch(match['database'], p_sql.BOARD_COUNT, (match['table'], match['round'])) + row = [0 if r is None else r for r in db_fetch(match['database'], p_sql.BOARD_COUNT, (match['table'], match['round']))] if row[1] > 0: info.running = int(row[1]) if row[1] >= row[0] - towels[0]: |