From c2e4a969fe0075b28ceb8aeac5c0f98e6480cc5c Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Thu, 1 Mar 2018 14:20:44 +0100 Subject: [PATCH] Fix remind finishing task --- tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 3586e6a..dff6ad9 100644 --- a/tasks.py +++ b/tasks.py @@ -673,10 +673,10 @@ def send_reminder_async(reminder_id, protocol_id): reminder_text, reply_to=protocol.protocoltype.private_mail) def remind_finishing(protocol, delay_days, min_delay_days): - remind_finishing.delay(protocol.id, delay_days, min_delay_days) + remind_finishing_async.delay(protocol.id, delay_days, min_delay_days) @celery.task -def remind_finishing(protocol_id, delay_days, min_delay_days): +def remind_finishing_async(protocol_id, delay_days, min_delay_days): with app.app_context(): protocol = Protocol.query.filter_by(id=protocol_id).first() mail_text = render_template("remind-finishing-mail.txt", -- GitLab