Update index.py

This commit is contained in:
Mr Chen
2019-03-01 16:34:31 +08:00
parent 28ddb57c8e
commit 0e200e8c12
+4
View File
@@ -100,6 +100,10 @@ def getUserList():
conf = public.readFile(path)
conf = re.sub('#(.*)\n', '', conf)
if conf.strip() == '':
return public.returnJson(True, 'ok', [])
ulist = conf.strip().split('\n')
user = []