From 654d8d84d11c87b55370d977ebd866a24b14a776 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 27 Jan 2018 15:46:21 +0100 Subject: Link defined in JSON overrides links from database --- jfr_playoff/data.py | 10 +++++----- 1 file 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): -- cgit v1.2.3