Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Elia Ponzio
cynomys
Commits
3e72511d
Commit
3e72511d
authored
Jun 25, 2021
by
Elia Ponzio
Browse files
Docu
parent
7579f982
Changes
1
Hide whitespace changes
Inline
Side-by-side
cynomys/tasks.py
View file @
3e72511d
...
...
@@ -57,7 +57,7 @@ def check_http(host, timeout, httpcode, **kwargs):
# pass
def
check_delta
(
responsebool
,
return_value
,
parent_task
):
"""Gets data from a check and compares it to the current state in the database. If a delta occurs, sends notifications"""
if
responsebool
:
delta
=
Delta
.
objects
.
filter
(
task
=
parent_task
).
last
()
if
not
delta
:
...
...
Write
Preview
Markdown
is supported
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