From 32234b48867ff39413d1252874ff7047adc45378 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 12 Jun 2016 17:55:03 +0200 Subject: [PATCH] rename template-filter fmttime to frmttime --- tsstats/template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsstats/template.py b/tsstats/template.py index 9048147..ffbe71c 100644 --- a/tsstats/template.py +++ b/tsstats/template.py @@ -49,9 +49,9 @@ def render_template(clients, output, title='TeamspeakStats'): ]) template_env = Environment(loader=template_loader) - def fmttime(timestamp): + def frmttime(timestamp): return strftime('%x %X', localtime(int(timestamp))) - template_env.filters['frmttime'] = fmttime + template_env.filters['frmttime'] = frmttime template = template_env.get_template('template.html') with open(output, 'w') as f: f.write(template.render(title=title, objs=objs,