From b541abad4257cb49fe8fc3f87d5c9a9eef7030ab Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 7 Mar 2023 13:44:28 +0800 Subject: [PATCH] Update index.py --- plugins/supervisor/index.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/supervisor/index.py b/plugins/supervisor/index.py index 00d20a90f..046cf3caa 100755 --- a/plugins/supervisor/index.py +++ b/plugins/supervisor/index.py @@ -462,8 +462,9 @@ def configTpl(): pathFile = os.listdir(path) tmp = [] for one in pathFile: - file = path + '/' + one - tmp.append(file) + if one.endswith(".ini"): + file = path + '/' + one + tmp.append(file) return mw.getJson(tmp)