Update plugins_api.py

This commit is contained in:
midoks 2023-02-25 08:15:38 +08:00
parent ee3684706f
commit 41b7245f03
1 changed files with 2 additions and 1 deletions

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):