summaryrefslogtreecommitdiff
path: root/jfr_playoff/matchinfo.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-09-28 17:38:01 +0200
committeremkael <emkael@tlen.pl>2018-09-28 17:38:01 +0200
commit1e17305d838189d9e4e8f861f9c67fa736a0ba11 (patch)
tree3456082e55715df8ea0562de4deae571f6257a19 /jfr_playoff/matchinfo.py
parentc2150a64886a2bf6550f873a1c6d57c949d224be (diff)
parent72e52cf8c572f262d022acaa1eb1aa65bccb099e (diff)
Merge branch 'devel' into position-boxes
Diffstat (limited to 'jfr_playoff/matchinfo.py')
-rw-r--r--jfr_playoff/matchinfo.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/jfr_playoff/matchinfo.py b/jfr_playoff/matchinfo.py
index 1357ba3..4089a76 100644
--- a/jfr_playoff/matchinfo.py
+++ b/jfr_playoff/matchinfo.py
@@ -193,10 +193,7 @@ class MatchInfo:
if scores_fetched:
PlayoffLogger.get('matchinfo').info(
'pre-defined scores for match #%d fetched', self.info.id)
- if 'running' in self.config:
- self.info.running = int(self.config['running'])
- else:
- self.info.running = -1
+ self.info.running = int(self.config.get('running', -1))
if not teams_fetched:
try:
try: