Update index.py

This commit is contained in:
dami
2026-02-01 17:40:58 +08:00
parent d8b387fbad
commit 7be14d2d8c
+3 -2
View File
@@ -1018,9 +1018,10 @@ def get_src_info(args):
data['databases'] = conn.field('id,name,ps').order("id desc").select()
data['plugin'] = []
webssh_dir = mw.getServerDir() + '/webssh'
plugin_webssh_name = "name"
webssh_dir = mw.getServerDir() + '/'+plugin_webssh_name
if os.path.exists(webssh_dir):
data['plugin'].append(webssh_dir)
data['plugin'].append(plugin_webssh_name)
return data