diff options
-rw-r--r-- | jfr_playoff/data.py | 10 |
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): |