Skip to content

Commit

Permalink
Include generator version and url
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman authored and tomcis committed Jun 10, 2020
1 parent 010b7e8 commit 2de9587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion popmon/visualization/report_generator.py
Expand Up @@ -2,6 +2,7 @@

from ..base import Module
from ..resources import templates_env
from ..version import NAME, VERSION


class ReportGenerator(Module):
Expand Down Expand Up @@ -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
5 changes: 3 additions & 2 deletions popmon/visualization/templates/core.html
Expand Up @@ -4,8 +4,9 @@

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Automatically generated population shift report">
<meta name="author" content="POPMON">
<meta name="generator" content="{{ generator }}" />
<meta name="description" content="Automatically generated population shift report" />
<meta name="url" content="https://github.com/ing-bank/popmon" />

<title>POPMON Report</title>

Expand Down

0 comments on commit 2de9587

Please sign in to comment.