summaryrefslogtreecommitdiff
path: root/playoff.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-07-31 17:34:59 +0200
committeremkael <emkael@tlen.pl>2017-07-31 17:34:59 +0200
commitdcd1eb8c42841b1027f08f563d8d20ad307ec640 (patch)
tree662036a6b13bae9229590822e89e01979d6582f0 /playoff.py
parentf3483de272394454a44c9928f81b9195ccdbe78e (diff)
Team flag can be set to NULL
Diffstat (limited to 'playoff.py')
-rw-r--r--playoff.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/playoff.py b/playoff.py
index 36cfb35..9537ef4 100644
--- a/playoff.py
+++ b/playoff.py
@@ -46,7 +46,8 @@ def get_shortname(fullname):
def get_team_image(fullname):
for team in settings['teams']:
if team[0] == fullname and len(team) > 2:
- return p_temp.LEADERBOARD_ROW_FLAG % (team[2])
+ if team[2] is not None:
+ return p_temp.LEADERBOARD_ROW_FLAG % (team[2])
return ''
def get_match_table(match):