From 12a86539d2a472daa14c30b3df0469d0177e3576 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 12 Jun 2016 18:11:27 +0200 Subject: [PATCH] convert onlinetime to int before converting to text * => don't display milliseconds in text --- tsstats/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsstats/template.py b/tsstats/template.py index 6363cf7..162281b 100644 --- a/tsstats/template.py +++ b/tsstats/template.py @@ -29,7 +29,7 @@ def render_template(clients, output, title='TeamspeakStats'): clients, lambda c: c.onlinetime.total_seconds() ) clients_onlinetime = [ - (client, seconds_to_text(onlinetime)) + (client, seconds_to_text(int(onlinetime))) for client, onlinetime in clients_onlinetime_ ]