Update index.py

This commit is contained in:
Mr Chen
2019-02-25 17:15:53 +08:00
parent cb21fc08e4
commit 3ffe6102e8
+5 -1
View File
@@ -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: