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
069562f1
Commit
069562f1
authored
Mar 07, 2017
by
Administrator
Browse files
Send mails correctly
parent
51ecbdd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks.py
View file @
069562f1
...
...
@@ -479,8 +479,9 @@ def send_todomails_async(protocol_id):
with
app
.
app_context
():
protocol
=
Protocol
.
query
.
filter_by
(
id
=
protocol_id
).
first
()
all_todos
=
[
todo
for
todo
in
Todo
.
query
.
filter
.
all
()
todo
for
todo
in
Todo
.
query
.
all
()
if
not
todo
.
is_done
()
and
todo
.
protocoltype
==
protocol
.
protocoltype
]
users
=
{
user
for
todo
in
all_todos
for
user
in
todo
.
get_users
()}
grouped_todos
=
{
...
...
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