summaryrefslogtreecommitdiff
path: root/playoff.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-05-31 16:27:19 +0200
committeremkael <emkael@tlen.pl>2017-05-31 16:28:54 +0200
commitfa16d375b07e05ba6b023df6d53b31e6f0f0d395 (patch)
tree333f2550092ee79ad1af50ddcca28ae001d75b89 /playoff.py
parent20849be3575f57dacfbd8bfffefba1045b1aaf64 (diff)
Towels in games which have not been played at all are now recognized
Diffstat (limited to 'playoff.py')
-rw-r--r--playoff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/playoff.py b/playoff.py
index 9f33666..208af65 100644
--- a/playoff.py
+++ b/playoff.py
@@ -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]: