Skip to content

Commit

Permalink
Update plugin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Dec 19, 2024
1 parent dc4ff9b commit 9f37033
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/utils/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,14 @@ def checkIndexList(self, name, version):
indexList = thisdb.getOptionByJson('display_index',default=[])
for i in indexList:
t = i.split('-')
if t[0] == name:
tlen = len(t)
plugin_name = t[0]
plugin_ver = t[1]
if tlen > 2:
tArr = t[0:tlen - 1]
plugin_name = '-'.join(tArr)
plugin_ver = t[tlen - 1]
if plugin_name == name:
return True
return False

Expand Down

0 comments on commit 9f37033

Please sign in to comment.