From 7e7a285517a83abb3ac31e65f7c4b93c32b41915 Mon Sep 17 00:00:00 2001 From: FSMPI Admin-Team <admin@fsmpi.rwth-aachen.de> Date: Wed, 5 Apr 2017 23:36:23 +0200 Subject: [PATCH] Handle protocol.done == None correctly when sending reminders --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index f4b954d..0144d7c 100755 --- a/server.py +++ b/server.py @@ -1328,7 +1328,7 @@ def check_and_send_reminders(): current_time = datetime.now() current_day = current_time.date() print("regular action for reminders") - for protocol in Protocol.query.filter(Protocol.done == False).all(): + for protocol in Protocol.query.filter(Protocol.done != True).all(): day_difference = (protocol.date - current_day).days usual_time = protocol.protocoltype.usual_time protocol_time = datetime(1, 1, 1, usual_time.hour, usual_time.minute) -- GitLab