summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2024-02-12 16:33:06 +0100
committeremkael <emkael@tlen.pl>2024-02-12 16:33:06 +0100
commit874391bc1574333337fefbc7abff06011cbff74c (patch)
treeb461dcea0e0b8a3680f3627913a71545c964f694 /jfr_playoff
parent8272cf20a6c207cd362e8d41cec2c086529b271e (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.py7
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