From 00b162771f54aba772e559328ce07efb7bc51fa2 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 26 Apr 2024 15:03:43 +0800 Subject: [PATCH] Update webstats_index.py --- plugins/webstats/webstats_index.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/webstats/webstats_index.py b/plugins/webstats/webstats_index.py index 9b2fd38b4..44aa4d02a 100644 --- a/plugins/webstats/webstats_index.py +++ b/plugins/webstats/webstats_index.py @@ -790,8 +790,10 @@ def get_logs_list(args): count = count[0][count_key] end_time = time.time() + cos_time = end_time-start_time data = {} + data['cos_time'] = cos_time _page = {} _page['count'] = count _page['p'] = page @@ -799,9 +801,9 @@ def get_logs_list(args): _page['tojs'] = tojs data['page'] = mw.getPage(_page) data['data'] = clist - cos_time = end_time-start_time + - return mw.returnJson(True, 'ok:'+cos_time, data) + return mw.returnJson(True, 'ok', data) def getLogsErrorList():