summaryrefslogtreecommitdiff
path: root/jfr_playoff/data/match/tcjson.py
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff/data/match/tcjson.py')
-rw-r--r--jfr_playoff/data/match/tcjson.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/jfr_playoff/data/match/tcjson.py b/jfr_playoff/data/match/tcjson.py
index 41ee4d8..590f27d 100644
--- a/jfr_playoff/data/match/tcjson.py
+++ b/jfr_playoff/data/match/tcjson.py
@@ -49,7 +49,8 @@ class TCJsonMatchInfo(MatchInfoClient):
def fetch_teams(self, teams):
results = self._get_results(
self.settings['link'], self.settings['table'])
- for idx, side in enumerate(['Ns', 'Ew']):
+ sides = [side for side in ['Ns', 'Sn', 'We', 'Ew'] if side in results]
+ for idx, side in enumerate(sides):
teams[idx].name = [results[side]['_name']]
teams[idx].known_teams = 1
teams[idx].score = results['Sum1'+side]