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
df1721d0
Commit
df1721d0
authored
May 14, 2019
by
Markus Scheidgen
Browse files
Filter corrupted mainfiles from aggregations.
parent
92e3d888
Pipeline
#48340
passed with stages
in 19 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/api/repo.py
View file @
df1721d0
...
...
@@ -252,6 +252,10 @@ class RepoCalcsResource(Resource):
except
KeyError
as
e
:
abort
(
400
,
str
(
e
))
# TODO just a workarround to make things prettier
if
'code_name'
in
aggregations
and
'currupted mainfile'
in
aggregations
[
'code_name'
]:
del
(
aggregations
[
'code_name'
][
'currupted mainfile'
])
return
dict
(
pagination
=
dict
(
total
=
total
,
page
=
page
,
per_page
=
per_page
),
results
=
results
,
...
...
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