diff options
author | emkael <emkael@tlen.pl> | 2018-01-27 15:50:55 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-01-27 15:50:55 +0100 |
commit | c00b84e4c3452c43aea6d28050d3ab486f8f388e (patch) | |
tree | 37ea5398adf40f6482796823e4f5cfe4c6564a5a | |
parent | 654d8d84d11c87b55370d977ebd866a24b14a776 (diff) |
"#" link for a single match is not resolved relatively to phase link
-rw-r--r-- | jfr_playoff/data.py | 5 |
1 files changed, 3 insertions, 2 deletions
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): |