give .total_seconds() to sort_clients instead of datetime.timedelta

This commit is contained in:
Thor77 2016-06-12 17:54:32 +02:00
parent 28855e9a81
commit c3dabb9082
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def render_template(clients, output, title='TeamspeakStats'):
'''
# prepare clients
clients_onlinetime_ = sort_clients(
clients, lambda c: c.onlinetime
clients, lambda c: c.onlinetime.total_seconds()
)
clients_onlinetime = [
(client, seconds_to_text(onlinetime))