Skip to content

Commit

Permalink
修复安全风险检测忽略检测项没有立刻生效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Apr 13, 2022
1 parent 0971c76 commit 2ccaa0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BTPanel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,8 @@ def panel_warning(pdata=None):
if comReturn: return comReturn

get = get_input()
ikey = 'warning_list'
if get.action == 'get_list':
ikey = 'warning_list'
result = cache.get(ikey)
if not result or 'force' in get:
result = public.ExecShell("{} {}/script/warning_list.py".format(public.get_python_bin(),public.get_panel_path()))[0]
Expand All @@ -608,6 +608,8 @@ def panel_warning(pdata=None):
import panelWarning
dataObject = panelWarning.panelWarning()
defs = ('get_list', 'set_ignore', 'check_find')
if get.action == 'set_ignore':
cache.delete(ikey)
return publicObject(dataObject, defs, None, pdata)


Expand Down

0 comments on commit 2ccaa0a

Please sign in to comment.