From 1f8bc9d4faf8c3be01303805c3029835555a676a Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 14 Feb 2024 09:59:29 +0100 Subject: If TC link point to round or session == 0, assume 1 --- jfr_playoff/data/match/tcjson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jfr_playoff/data') 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( -- cgit v1.2.3