diff --git a/tsstats/template.html b/tsstats/template.html index d78b6fc..0c1a056 100644 --- a/tsstats/template.html +++ b/tsstats/template.html @@ -32,6 +32,7 @@ {% endif %} {% endfor %} +Generated by TeamspeakStats at {{ creation_time|frmttime }} diff --git a/tsstats/template.py b/tsstats/template.py index 1384fa3..67277c3 100644 --- a/tsstats/template.py +++ b/tsstats/template.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import logging +from datetime import datetime from os.path import dirname from jinja2 import ChoiceLoader, Environment, FileSystemLoader, PackageLoader @@ -56,4 +57,5 @@ def render_template(clients, output, title='TeamspeakStats'): template = template_env.get_template('template.html') with open(output, 'w') as f: f.write(template.render(title=title, objs=objs, - debug=logger.level <= logging.DEBUG)) + debug=logger.level <= logging.DEBUG, + creation_time=datetime.now()))