From 5c7b3fc81934bfbd5a014b4c2a3dc63d60c35bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Fri, 23 Jun 2023 13:50:58 +0200 Subject: [PATCH] [fix] reminding notifications --- source/logic/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/logic/main.py b/source/logic/main.py index 52eea7f..1f89705 100644 --- a/source/logic/main.py +++ b/source/logic/main.py @@ -206,7 +206,7 @@ def main(): ### get old state and examine whether the check shall be executed rows1 = sqlite_query_get( database_path, - "SELECT MIN(timestamp) FROM results WHERE (check_name = :check_name) AND (notification_sent = TRUE);", + "SELECT MAX(timestamp) FROM results WHERE (check_name = :check_name) AND (notification_sent = TRUE);", { "check_name": check_data["name"], } @@ -378,7 +378,7 @@ def main(): ) ) - if (not _os.exists(args.mutex_path)): + if (not _os.path.exists(args.mutex_path)): pass else: _os.remove(args.mutex_path)