Update index.py

This commit is contained in:
Mr Chen
2024-12-10 18:50:06 +08:00
parent c66b9794ee
commit 31cafa59ab
+2 -3
View File
@@ -739,7 +739,7 @@ def setDisableFunc(version):
def getPhpinfo(version):
stat = status(version)
if stat == 'stop':
return 'PHP[' + version + ']未启动,不可访问!!!'
return 'PHP[' + version + ']未启动,不可访问!'
sock_file = getFpmAddress(version)
root_dir = mw.getFatherDir() + '/phpinfo'
@@ -771,8 +771,7 @@ def getLibConf(version):
phplib = json.loads(mw.readFile(libpath))
libs = []
tasks = mw.M('tasks').where(
"status!=?", ('1',)).field('status,name').select()
tasks = mw.M('tasks').where("status!=?", ('1',)).field('status,name').select()
for lib in phplib:
lib['task'] = '1'
for task in tasks: