From 7835e004c113e2f8478702a8b4e44d40e452fb87 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 25 Feb 2019 17:15:53 +0800 Subject: [PATCH] Update index.py --- plugins/gogs/index.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/gogs/index.py b/plugins/gogs/index.py index 5ee118c39..383f4c325 100755 --- a/plugins/gogs/index.py +++ b/plugins/gogs/index.py @@ -578,8 +578,12 @@ def getTotalStatistics(): st = status() data = {} if st == 'start': + pm = pMysqlDb() + list_count = pm.query('select count(id) as num from repository') + count = list_count[0][0] + data['status'] = True - data['count'] = 1 + data['count'] = count data['ver'] = public.readFile(getServerDir() + '/version.pl').strip() return public.returnJson(True, 'ok', data) else: