From 89cbd003e6fa964196f7c8d59fcaaa097fd3ddbd Mon Sep 17 00:00:00 2001 From: Bendik Christensen Date: Tue, 5 Dec 2023 16:02:16 +0100 Subject: [PATCH] final fix --- scheduler/state_machine/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/state_machine/controller.py b/scheduler/state_machine/controller.py index fea181e8..cdfa9cad 100644 --- a/scheduler/state_machine/controller.py +++ b/scheduler/state_machine/controller.py @@ -414,7 +414,7 @@ def check_if_end_date(self, current_date: date): if quit_date is None: logging.warning('Quit date is not found for user ', self.user_id) - elif quit_date is not None and current_date >= quit_date: + elif current_date >= quit_date: logging.info('Goals setting state ended, starting execution state') # on the quit date, notify the user that today is the quit date