Update plugins_api.py

This commit is contained in:
midoks
2023-02-25 08:15:38 +08:00
parent ee3684706f
commit 41b7245f03
+2 -1
View File
@@ -256,8 +256,9 @@ class plugins_api:
data = json.loads(t)
for idx in range(len(data)):
if data[idx]['title'] == info['title'] and data[idx]['name'] == info['name']:
if data[idx]['name'] == info['name']:
data.remove(data[idx])
break
mw.writeFile(hookPath, json.dumps(data))
def hookInstall(self, info):