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:
|
try:
|
||||||
if globals.config.getboolean("BOSWatch","useRegExFilter"):
|
if globals.config.getboolean("BOSWatch","useRegExFilter"):
|
||||||
from includes import filter
|
from includes import regexFilter
|
||||||
filter.loadFilters()
|
regexFilter.loadFilters()
|
||||||
except:
|
except:
|
||||||
# It's an error, but we could work without that stuff...
|
# It's an error, but we could work without that stuff...
|
||||||
logging.error("cannot load filters")
|
logging.error("cannot load filters")
|
||||||
|
|
|
||||||
|
|
@ -77,8 +77,8 @@ def processAlarm(typ, freq, data):
|
||||||
for pluginName, plugin in globals.pluginList.items():
|
for pluginName, plugin in globals.pluginList.items():
|
||||||
# if enabled use RegEx-filter
|
# if enabled use RegEx-filter
|
||||||
if globals.config.getint("BOSWatch","useRegExFilter"):
|
if globals.config.getint("BOSWatch","useRegExFilter"):
|
||||||
from includes import filter
|
from includes import regexFilter
|
||||||
if filter.checkFilters(typ, data, pluginName, freq):
|
if regexFilter.checkFilters(typ, data, pluginName, freq):
|
||||||
logging.debug("call Plugin: %s", pluginName)
|
logging.debug("call Plugin: %s", pluginName)
|
||||||
try:
|
try:
|
||||||
plugin.run(typ, freq, data)
|
plugin.run(typ, freq, data)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue