mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -578,8 +578,12 @@ def getTotalStatistics():
|
|||||||
st = status()
|
st = status()
|
||||||
data = {}
|
data = {}
|
||||||
if st == 'start':
|
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['status'] = True
|
||||||
data['count'] = 1
|
data['count'] = count
|
||||||
data['ver'] = public.readFile(getServerDir() + '/version.pl').strip()
|
data['ver'] = public.readFile(getServerDir() + '/version.pl').strip()
|
||||||
return public.returnJson(True, 'ok', data)
|
return public.returnJson(True, 'ok', data)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user