Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
c2e4a969
Commit
c2e4a969
authored
Mar 01, 2018
by
Robin Sonnabend
Browse files
Fix remind finishing task
parent
6eb0583d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks.py
View file @
c2e4a969
...
...
@@ -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"
,
...
...
Robin Sonnabend
@robin
mentioned in issue
#167 (closed)
·
Mar 02, 2018
mentioned in issue
#167 (closed)
mentioned in issue #167
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment