Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
53e211f1
Verified
Commit
53e211f1
authored
Jun 25, 2021
by
Mattia Rizzolo
Browse files
bmodels: and a couple of code comments
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
cd0fb77a
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/models.py
View file @
53e211f1
...
...
@@ -824,10 +824,15 @@ class AM(models.Model):
am
.
proc_held
=
[]
ams
[
am
]
=
am
# loop through open processes and collect the AM status of each
for
p
in
pmodels
.
AMAssignment
.
objects
.
filter
(
unassigned_by__isnull
=
True
,
process__frozen_by__isnull
=
True
,
process__approved_by__isnull
=
True
,
process__closed_time__isnull
=
True
).
select_related
(
"am"
):
# The process is still open
process__frozen_by__isnull
=
True
,
process__approved_by__isnull
=
True
,
process__closed_time__isnull
=
True
,
# The AM hasn't been unassigned
unassigned_by__isnull
=
True
,
).
select_related
(
"am"
):
am
=
ams
[
p
.
am
]
if
p
.
paused
:
am
.
proc_held
.
append
(
p
)
...
...
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