Update index.py

pull/109/head
Mr Chen 6 years ago
parent f968dee8be
commit 7835e004c1
  1. 6
      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:

Loading…
Cancel
Save