summaryrefslogtreecommitdiff
path: root/jfr_playoff/matchinfo.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-09-28 17:37:16 +0200
committeremkael <emkael@tlen.pl>2018-09-28 17:37:16 +0200
commit72e52cf8c572f262d022acaa1eb1aa65bccb099e (patch)
treeae22e9f6cd22bd673da56c8111912e0b37f4209d /jfr_playoff/matchinfo.py
parentf5ac370c094ae393dc0348bbbf31bef1fe9a7208 (diff)
Refactoring of some config dictionary default value fetches
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 dd2ee30..ab742d4 100644
--- a/jfr_playoff/matchinfo.py
+++ b/jfr_playoff/matchinfo.py
@@ -191,10 +191,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: