summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.version8
-rw-r--r--playoff.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/.version b/.version
index 190a044..f5e7b49 100644
--- a/.version
+++ b/.version
@@ -1,8 +1,8 @@
# UTF-8
VSVersionInfo(
ffi=FixedFileInfo(
- filevers=(1, 0, 1, 1),
- prodvers=(1, 0, 1, 1),
+ filevers=(1, 0, 1, 2),
+ prodvers=(1, 0, 1, 2),
# Contains a bitmask that specifies the valid bits 'flags'
mask=0x3f,
# Contains a bitmask that specifies the Boolean attributes of the file.
@@ -26,10 +26,10 @@ VSVersionInfo(
u'040904b0', # 0x0409(1033)= English, 0x04b0(1200)= UTF-8
[StringStruct(u'CompanyName', u'emkael.info'),
StringStruct(u'ProductName', u'teamy_playoff'),
- StringStruct(u'ProductVersion', u'1, 0, 1, 1'),
+ StringStruct(u'ProductVersion', u'1, 0, 1, 2'),
StringStruct(u'InternalName', u'teamy_playoff'),
StringStruct(u'OriginalFilename', u'playoff.exe'),
- StringStruct(u'FileVersion', u'1, 0, 1, 1'),
+ StringStruct(u'FileVersion', u'1, 0, 1, 2'),
StringStruct(
u'FileDescription',
u'Play-off visualisation for JFR Teamy events'),
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]: