Skip to content

Commit

Permalink
better output when submitting files with the API
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelmuller committed Sep 21, 2017
1 parent 84da6bd commit 1ff6b64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/views/analyses.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ def post(self):
return redirect(clean_files(f), url_for('FilesView:get', id=f['_id']))
else:
analysis = {'analysis': clean_analyses(f.analyze(groups, current_user['_id'], module, options))}
analysis['analysis']['file'] = clean_files(f)

return redirect(analysis, url_for('AnalysesView:get', id=analysis['analysis']['_id']))
else:
return render_template('analyses/new.html', options=dispatcher.options)
Expand Down

0 comments on commit 1ff6b64

Please sign in to comment.