summaryrefslogtreecommitdiff
path: root/jfr_playoff/data
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2024-02-14 09:59:29 +0100
committeremkael <emkael@tlen.pl>2024-02-14 09:59:29 +0100
commit1f8bc9d4faf8c3be01303805c3029835555a676a (patch)
treec5a9f1f1f3925ee2b1a73b36eee01701773b4ca3 /jfr_playoff/data
parentf5997f1e14a2acc14a78f690ecd5d90ee501ceff (diff)
If TC link point to round or session == 0, assume 1
Diffstat (limited to 'jfr_playoff/data')
-rw-r--r--jfr_playoff/data/match/tcjson.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jfr_playoff/data/match/tcjson.py b/jfr_playoff/data/match/tcjson.py
index ade7704..41ee4d8 100644
--- a/jfr_playoff/data/match/tcjson.py
+++ b/jfr_playoff/data/match/tcjson.py
@@ -22,7 +22,7 @@ class TCJsonMatchInfo(MatchInfoClient):
def _get_round_from_link(self, link):
fragment = urlparse.urlparse(link).fragment
- return int(fragment[11:14]), int(fragment[14:17])
+ return max(1, int(fragment[11:14])), max(1, int(fragment[14:17]))
def get_match_link(self):
PlayoffLogger.get('match.tcjson').info(