From 2de9587c3df36b31e7f116c29215b840a15393a7 Mon Sep 17 00:00:00 2001 From: sbrugman Date: Fri, 29 May 2020 15:46:47 +0200 Subject: [PATCH] Include generator version and url --- popmon/visualization/report_generator.py | 3 ++- popmon/visualization/templates/core.html | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/popmon/visualization/report_generator.py b/popmon/visualization/report_generator.py index 4f7db70a..a22d6060 100644 --- a/popmon/visualization/report_generator.py +++ b/popmon/visualization/report_generator.py @@ -2,6 +2,7 @@ from ..base import Module from ..resources import templates_env +from ..version import NAME, VERSION class ReportGenerator(Module): @@ -32,6 +33,6 @@ def transform(self, datastore): # get HTML template for the final report, insert placeholder data and compress the code args = dict(sections=sections_html) datastore[self.store_key] = htmlmin.minify( - templates_env(filename="core.html", **args) + templates_env(filename="core.html", generator=f"{NAME} {VERSION}", **args) ) return datastore diff --git a/popmon/visualization/templates/core.html b/popmon/visualization/templates/core.html index 9feb50a0..fafd0dfa 100644 --- a/popmon/visualization/templates/core.html +++ b/popmon/visualization/templates/core.html @@ -4,8 +4,9 @@ - - + + + POPMON Report