From 2149bc8c310eec8e4ea70599c3b0996d83271cc8 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 17 May 2015 15:39:16 +0200 Subject: [PATCH] remove hardcoded string at 'generated in...' --- tsstats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsstats.py b/tsstats.py index e65b155..4bf60c1 100755 --- a/tsstats.py +++ b/tsstats.py @@ -187,9 +187,10 @@ def render_template(): onlinetime_str = str(onlinetime) + 'm' onlinetime_desc[idx] = (clid, nick, onlinetime_str, clients[clid]['connected']) + with open(output_path, 'w+') as f: f.write(template.render(title=title, onlinetime=onlinetime_desc, kicks=desc('kicks'), pkicks=desc('pkicks'), bans=desc('bans'), seconds='{}.{}'.format(generation_delta.seconds, generation_delta.microseconds), - date=generation_end.strftime('%d.%m.%Y um %H:%M'), + date=generation_end.strftime('%d.%m.%Y %H:%M'), show_onlinetime=show_onlinetime, show_kicks=show_kicks, show_pkicks=show_pkicks,