Don't drop current nick in prepare_clients

because that's already handled in the Client.nick-property now
This commit is contained in:
Thor77 2017-07-24 14:40:41 +02:00
parent c2fb6aa6c1
commit 3acf282470
1 changed files with 0 additions and 6 deletions

View File

@ -31,12 +31,6 @@ def prepare_clients(clients, onlinetime_threshold=-1):
:return: `clients` sorted by onlinetime, kics, pkicks, bans and pbans
:rtype: tsstats.template.SortedClients
'''
# drop current nick from nick-history
[
c.nick_history.remove(c.nick)
for c in clients
if c.nick in c.nick_history
]
# sort by onlinetime
onlinetime_ = sort_clients(
clients, lambda c: c.onlinetime.total_seconds()