diff options
author | emkael <emkael@tlen.pl> | 2018-01-22 16:01:32 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-01-22 16:01:32 +0100 |
commit | a6043f2d7b2cda3ca93e4ba8482d7b64e65ca19e (patch) | |
tree | 5e1bb1a6dc5f3d764655b78c3076ac37ff6f2cdc /jfr_playoff | |
parent | 6fa172aed2f008ef601386387aaa2e149e64e0dd (diff) |
Custom default link for a match defined in config
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/data.py | 6 |
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') |