Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
549b7bef
Commit
549b7bef
authored
Nov 23, 2018
by
Lukas Burgey
Browse files
Fix a bug in pending_tasks
parent
4fa25981
Changes
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/models/__init__.py
View file @
549b7bef
...
...
@@ -67,10 +67,13 @@ class Site(models.Model):
def
pending_tasks
(
self
):
tasks
=
{}
# ignores orphaned deployment states
dep_states
=
[
state
for
state
in
self
.
state_items
.
all
()
if
state
.
is_pending
or
state
.
is_credential_pending
if
(
state
.
is_pending
or
state
.
is_credential_pending
)
and
state
.
parent
is
not
None
]
# make the tasks unique here
...
...
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