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

troubleshooting

parent ce650712
No related branches found
No related tags found
1 merge request!349SDC-1148 Summary endpoints
Pipeline #76227 passed
......@@ -1715,7 +1715,7 @@ def GetSummaryHtml(request, sas_id):
# use a trick to be able to use the existing task based code
queryset = Task.objects.filter(sas_id=sas_id)
task = queryset[0]
logger.info(task)
# this would be the django template way of combining a html template with context.
# but that didn't add any of the styling, so I did it the basic way (see below).
# TODO: remove the commented out code later
......@@ -1741,16 +1741,16 @@ def GetSummaryHtml(request, sas_id):
<div class="card-body">
<table class="table table-striped">
"""
logger.info(body_html)
# create the core html
summary_html = algorithms.construct_summary(task)
logger.info(summary_html)
# close all the tags
footer_html = "</table></div></div></div></body></html>"
# combine the html sections
html = head_html + body_html + summary_html + footer_html
logger.info(html)
return HttpResponse(html)
except Exception as error:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment