diff --git a/notification/praytimes.py b/notification/praytimes.py index f143463..bd895fc 100644 --- a/notification/praytimes.py +++ b/notification/praytimes.py @@ -137,10 +137,10 @@ class PrayTimes(): def __init__(self, method = "MWL") : # set methods defaults - for method, config in self.methods.items(): + for _, config in self.methods.items(): for name, value in self.defaultParams.items(): - if not name in config['params'] or config['params'][name] is None: - config['params'][name] = value + if not name in config['params'] or config[name]['params'] is None: + config[name]['params'] = value # initialize settings self.calcMethod = method if method in self.methods else 'MWL' @@ -164,7 +164,7 @@ def adjust(self, params): self.settings.update(params) def tune(self, timeOffsets): - self.offsets.update(timeOffsets) + self.offset.update(timeOffsets) def getMethod(self): return self.calcMethod