Skip to content
Snippets Groups Projects
Commit 5fb9f870 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

handle review comments

parent 35f21d5a
No related branches found
No related tags found
1 merge request!349SDC-1148 Summary endpoints
Pipeline #77177 passed
......@@ -1150,6 +1150,9 @@ def construct_summary(task, format='html'):
return construct_default_summary(task)
elif format=='json':
# construct the appropriate summary json
if summary_flavour == SummaryFlavour.IMAGING_COMPRESSION.value:
return construct_imaging_summary_json(task)
if summary_flavour == SummaryFlavour.LINC_CALIBRATOR.value:
return construct_linc_summary_json(task)
......@@ -1263,6 +1266,12 @@ def construct_default_summary_json(task):
return summary_json
def construct_imaging_summary_json(task):
# example: http://localhost:8000/atdb/get_summary/658584/json
results = {'result': 'summary not yet implemented for imaging'}
return results
def construct_linc_summary_json(task):
total_size_to_process = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment