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:
@@ -100,6 +100,10 @@ def getUserList():
|
|||||||
conf = public.readFile(path)
|
conf = public.readFile(path)
|
||||||
|
|
||||||
conf = re.sub('#(.*)\n', '', conf)
|
conf = re.sub('#(.*)\n', '', conf)
|
||||||
|
|
||||||
|
if conf.strip() == '':
|
||||||
|
return public.returnJson(True, 'ok', [])
|
||||||
|
|
||||||
ulist = conf.strip().split('\n')
|
ulist = conf.strip().split('\n')
|
||||||
|
|
||||||
user = []
|
user = []
|
||||||
|
|||||||
Reference in New Issue
Block a user