diff --git a/server.py b/server.py index f4b954deb0c021cd96e7e6148098793ffb13a610..0144d7c6931d1e49bcbf371d4073fd44bcce21cd 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)