Skip to content

Commit

Permalink
use round config instead of flags
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Sep 22, 2019
1 parent 9287fb3 commit f65fb00
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions montage/rdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,16 +298,15 @@ class Round(Base):

@property
def show_stats(self):
if self.flags is None:
if self.config is None:
return None

return self.flags.get('show_stats')
return self.config.get('show_stats')

@show_stats.setter
def show_stats(self, value):
if self.flags is None:
self.flags = {}
self.flags['show_stats'] = value
if self.config is None:
self.config = {}
self.config['show_stats'] = value

def check_closability(self):
task_count = self._get_task_count()
Expand Down

0 comments on commit f65fb00

Please sign in to comment.