Don't drop current nick in prepare_clients
because that's already handled in the Client.nick-property now
This commit is contained in:
parent
c2fb6aa6c1
commit
3acf282470
|
@ -31,12 +31,6 @@ def prepare_clients(clients, onlinetime_threshold=-1):
|
||||||
:return: `clients` sorted by onlinetime, kics, pkicks, bans and pbans
|
:return: `clients` sorted by onlinetime, kics, pkicks, bans and pbans
|
||||||
:rtype: tsstats.template.SortedClients
|
: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
|
# sort by onlinetime
|
||||||
onlinetime_ = sort_clients(
|
onlinetime_ = sort_clients(
|
||||||
clients, lambda c: c.onlinetime.total_seconds()
|
clients, lambda c: c.onlinetime.total_seconds()
|
||||||
|
|
Loading…
Reference in New Issue