summaryrefslogtreecommitdiff
path: root/jfr_playoff/data.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-01-22 16:01:32 +0100
committeremkael <emkael@tlen.pl>2018-01-22 16:01:32 +0100
commita6043f2d7b2cda3ca93e4ba8482d7b64e65ca19e (patch)
tree5e1bb1a6dc5f3d764655b78c3076ac37ff6f2cdc /jfr_playoff/data.py
parent6fa172aed2f008ef601386387aaa2e149e64e0dd (diff)
Custom default link for a match defined in config
Diffstat (limited to 'jfr_playoff/data.py')
-rw-r--r--jfr_playoff/data.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py
index f38cdee..23f82b8 100644
--- a/jfr_playoff/data.py
+++ b/jfr_playoff/data.py
@@ -84,8 +84,12 @@ class PlayoffData(object):
return None
def get_match_link(self, match):
- return self.__get_link(
+ link = self.__get_link(
match['database'], 'runda%d.html' % (match['round']))
+ if link is None:
+ if 'link' in match:
+ link = match['link']
+ return link
def get_leaderboard_link(self, database):
return self.__get_link(database, 'leaderb.html')