Add funcdoc for tsstats.template.prepare_clients

This commit is contained in:
Thor77 2016-11-24 22:57:56 +01:00
parent 7a55829d0b
commit 8d2e0c1345
1 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,15 @@ def prepare_clients(clients, onlinetime_threshold=-1):
Prepare `clients` for rendering
sort them and convert onlinetime to string
:param clients: List of clients to prepare
:param onlinetime_threshold: threshold for clients onlinetime
:type clients: tsstats.client.Clients
:type onlinetime_treshold: int
:return: `clients` sorted by onlinetime, kics, pkicks, bans and pbans
:rtype: tsstats.template.SortedClients
'''
# sort by onlinetime
onlinetime_ = sort_clients(