Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
7e7a2855
Commit
7e7a2855
authored
Apr 05, 2017
by
Administrator
Browse files
Handle protocol.done == None correctly when sending reminders
parent
fde416aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
7e7a2855
...
...
@@ -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
=
=
Fals
e
).
all
():
for
protocol
in
Protocol
.
query
.
filter
(
Protocol
.
done
!
=
Tru
e
).
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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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