diff options
author | emkael <emkael@tlen.pl> | 2017-08-01 14:05:59 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-08-01 14:05:59 +0200 |
commit | de7260322d60eeb5fd0afa57ec2e250ce7f52261 (patch) | |
tree | 1f568947519abfc30811ac1a2e5e705af8762941 /jfr_playoff/generator.py | |
parent | 126729817b8626a597b61bcc59f8a6441e480691 (diff) |
Settings are not used as class attributes once loaded, so can remain local to constructor
Diffstat (limited to 'jfr_playoff/generator.py')
-rw-r--r-- | jfr_playoff/generator.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py index e3e8221..bc2a388 100644 --- a/jfr_playoff/generator.py +++ b/jfr_playoff/generator.py @@ -6,12 +6,11 @@ from jfr_playoff.data import PlayoffData class PlayoffGenerator(object): def __init__(self, settings): - self.settings = settings - self.data = PlayoffData(self.settings) - self.page = self.settings.get('page') + self.data = PlayoffData(settings) + self.page = settings.get('page') self.canvas = {} - if self.settings.has_section('canvas'): - self.canvas = self.settings.get('canvas') + if settings.has_section('canvas'): + self.canvas = settings.get('canvas') def generate_content(self): return p_temp.PAGE % ( |