From 874391bc1574333337fefbc7abff06011cbff74c Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 12 Feb 2024 16:33:06 +0100 Subject: Table number for match results from TC page comes from visible table number. Clarified documentation on that matter, too. --- jfr_playoff/data/match/tcjson.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'jfr_playoff/data') diff --git a/jfr_playoff/data/match/tcjson.py b/jfr_playoff/data/match/tcjson.py index 2c4ea0a..ade7704 100644 --- a/jfr_playoff/data/match/tcjson.py +++ b/jfr_playoff/data/match/tcjson.py @@ -38,12 +38,7 @@ class TCJsonMatchInfo(MatchInfoClient): p_remote.fetch_raw( self._get_results_link( 'o%d-%d.json' % (session_no, round_no)))) - tables = [] - for result in round_results['Results']: - tables.append(result['Table']) - table_id = sorted(tables)[table_no-1] - PlayoffLogger.get('match.tcjson').info( - 'table no %d from %s: %s', table_no, tables, table_id) + table_id = str(table_no) for result in round_results['Results']: if result['Table'] == table_id: return result -- cgit v1.2.3