Commit df1721d0 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Filter corrupted mainfiles from aggregations.

parent 92e3d888
Pipeline #48340 passed with stages
in 19 minutes and 17 seconds
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment