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
nomad-lab
nomad-FAIR
Commits
fe09d275
Commit
fe09d275
authored
May 10, 2019
by
Markus Scheidgen
Browse files
Minor fix to housekeeping commands. [skip ci]
parent
56291e2e
Pipeline
#48057
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/client/misc.py
View file @
fe09d275
...
...
@@ -181,7 +181,7 @@ def clean_public(dry):
to_delete
=
list
(
path
for
upload
,
path
in
uploads
()
if
processing
.
Upload
.
objects
(
upload_id
=
upload
).
first
()
is
not
None
)
if
processing
.
Upload
.
objects
(
upload_id
=
upload
).
first
()
is
None
)
input
(
'Will delete %d uploads. Press any key to continue ...'
%
len
(
to_delete
))
...
...
@@ -207,7 +207,7 @@ def clean_es(dry):
to_delete
=
list
(
(
upload
,
calcs
)
for
upload
,
calcs
in
uploads
()
if
processing
.
Upload
.
objects
(
upload_id
=
upload
).
first
()
is
not
None
)
if
processing
.
Upload
.
objects
(
upload_id
=
upload
).
first
()
is
None
)
calcs
=
0
for
_
,
upload_calcs
in
to_delete
:
...
...
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