[fix] reminding notifications

This commit is contained in:
Christian Fraß 2023-06-23 13:50:58 +02:00
parent d3028549cf
commit 5c7b3fc819

View file

@ -206,7 +206,7 @@ def main():
### get old state and examine whether the check shall be executed ### get old state and examine whether the check shall be executed
rows1 = sqlite_query_get( rows1 = sqlite_query_get(
database_path, 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"], "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 pass
else: else:
_os.remove(args.mutex_path) _os.remove(args.mutex_path)