summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-01-27 15:46:21 +0100
committeremkael <emkael@tlen.pl>2018-01-27 15:46:21 +0100
commit654d8d84d11c87b55370d977ebd866a24b14a776 (patch)
treeb27d29ace6dce58c12ae8738d586e725ee20c175 /jfr_playoff
parentf1d9254134319f8f7144b797c2506c14069ee47a (diff)
Link defined in JSON overrides links from database
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/data.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py
index cb45fc3..e6b19af 100644
--- a/jfr_playoff/data.py
+++ b/jfr_playoff/data.py
@@ -83,11 +83,11 @@ class PlayoffData(object):
return None
def get_match_link(self, match):
- link = self.__get_link(
- match['database'], 'runda%d.html' % (match['round']))
- if link is None:
- if 'link' in match:
- link = match['link']
+ if 'link' in match:
+ link = match['link']
+ else:
+ link = self.__get_link(
+ match['database'], 'runda%d.html' % (match['round']))
return link
def get_leaderboard_link(self, database):