From b99db72b3da35cd39671198efd3da7dac2e6e7e0 Mon Sep 17 00:00:00 2001 From: Vermaas <vermaas@astron.nl> Date: Tue, 19 Mar 2024 14:08:55 +0100 Subject: [PATCH] troubleshooting --- atdb/taskdatabase/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/atdb/taskdatabase/views.py b/atdb/taskdatabase/views.py index d77a0378..53462130 100644 --- a/atdb/taskdatabase/views.py +++ b/atdb/taskdatabase/views.py @@ -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: -- GitLab