diff options
author | emkael <emkael@tlen.pl> | 2024-02-12 16:33:06 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2024-02-12 16:33:06 +0100 |
commit | 874391bc1574333337fefbc7abff06011cbff74c (patch) | |
tree | b461dcea0e0b8a3680f3627913a71545c964f694 /jfr_playoff | |
parent | 8272cf20a6c207cd362e8d41cec2c086529b271e (diff) |
Table number for match results from TC page comes from visible table number.
Clarified documentation on that matter, too.
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/data/match/tcjson.py | 7 |
1 files changed, 1 insertions, 6 deletions
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 |