From 3f824bab239d167cc466e57212bf2de2675f302c Mon Sep 17 00:00:00 2001 From: Sebastian Marro Date: Fri, 10 Mar 2023 14:46:55 -0300 Subject: [PATCH] lims_report_html: some fixes (3) --- lims_report_html/html_template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lims_report_html/html_template.py b/lims_report_html/html_template.py index 3e1cc81..d6630b3 100644 --- a/lims_report_html/html_template.py +++ b/lims_report_html/html_template.py @@ -471,8 +471,9 @@ class LimsReport(Report): with Transaction().set_context(locale=locale): env = cls.get_lims_environment() + header = {} report_template = env.from_string(template_string) - context = cls.get_context(records, header=[], data=data) + context = cls.get_context(records, header, data=data) context.update({ 'report': action, 'get_image': cls.get_image,