From c00b84e4c3452c43aea6d28050d3ab486f8f388e Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 27 Jan 2018 15:50:55 +0100 Subject: "#" link for a single match is not resolved relatively to phase link --- jfr_playoff/data.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'jfr_playoff') diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py index e6b19af..f5f638b 100644 --- a/jfr_playoff/data.py +++ b/jfr_playoff/data.py @@ -68,8 +68,9 @@ class PlayoffData(object): if self.match_info[match['id']].link is None: self.match_info[match['id']].link = phase['link'] else: - self.match_info[match['id']].link = urljoin( - phase['link'], self.match_info[match['id']].link) + if self.match_info[match['id']].link != '#': + self.match_info[match['id']].link = urljoin( + phase['link'], self.match_info[match['id']].link) return self.match_info def __get_link(self, database, suffix): -- cgit v1.2.3