mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
rename filter to regexFilter
to prevent to redifine an builtin function
This commit is contained in:
parent
76dbdc0692
commit
e8e870849d
|
|
@ -281,8 +281,8 @@ try:
|
|||
#
|
||||
try:
|
||||
if globals.config.getboolean("BOSWatch","useRegExFilter"):
|
||||
from includes import filter
|
||||
filter.loadFilters()
|
||||
from includes import regexFilter
|
||||
regexFilter.loadFilters()
|
||||
except:
|
||||
# It's an error, but we could work without that stuff...
|
||||
logging.error("cannot load filters")
|
||||
|
|
|
|||
|
|
@ -77,8 +77,8 @@ def processAlarm(typ, freq, data):
|
|||
for pluginName, plugin in globals.pluginList.items():
|
||||
# if enabled use RegEx-filter
|
||||
if globals.config.getint("BOSWatch","useRegExFilter"):
|
||||
from includes import filter
|
||||
if filter.checkFilters(typ, data, pluginName, freq):
|
||||
from includes import regexFilter
|
||||
if regexFilter.checkFilters(typ, data, pluginName, freq):
|
||||
logging.debug("call Plugin: %s", pluginName)
|
||||
try:
|
||||
plugin.run(typ, freq, data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue