From 8d2e0c1345458db939cf3fdad52e5dfccd6ff559 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Thu, 24 Nov 2016 22:57:56 +0100 Subject: [PATCH] Add funcdoc for tsstats.template.prepare_clients --- tsstats/template.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tsstats/template.py b/tsstats/template.py index 8c425d7..94b6e9b 100644 --- a/tsstats/template.py +++ b/tsstats/template.py @@ -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(