From a6043f2d7b2cda3ca93e4ba8482d7b64e65ca19e Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 22 Jan 2018 16:01:32 +0100 Subject: Custom default link for a match defined in config --- jfr_playoff/data.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'jfr_playoff') 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') -- cgit v1.2.3