From b198d617d0ceef71f48e359cf791f2a0605e9328 Mon Sep 17 00:00:00 2001 From: "K.B" Date: Thu, 2 Feb 2023 09:56:14 +0100 Subject: [PATCH] Calque modification dans la methode '__init__' et la mrthode 'tune' --- notification/praytimes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notification/praytimes.py b/notification/praytimes.py index f143463a..bd895fca 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