mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-20 15:20:16 +01:00
bug in filter.py
This commit is contained in:
parent
42384407ce
commit
fa328676e8
|
|
@ -8,6 +8,7 @@ from includes import globals # Global variables
|
|||
def processAlarm(typ,freq,data):
|
||||
logging.debug("[ ALARM ]")
|
||||
for pluginName, plugin in globals.pluginList.items():
|
||||
|
||||
#if enabled use RegEx-Filter
|
||||
if globals.config.getint("BOSWatch","useRegExFilter"):
|
||||
from includes import filter
|
||||
|
|
@ -15,8 +16,10 @@ def processAlarm(typ,freq,data):
|
|||
logging.debug("call Plugin: %s", pluginName)
|
||||
plugin.run(typ,freq,data)
|
||||
logging.debug("return from: %s", pluginName)
|
||||
|
||||
else:
|
||||
logging.debug("call Plugin: %s", pluginName)
|
||||
plugin.run(typ,freq,data)
|
||||
logging.debug("return from: %s", pluginName)
|
||||
|
||||
logging.debug("[END ALARM]")
|
||||
|
|
@ -26,7 +26,7 @@ def checkFilters(data,typ,plugin):
|
|||
#extract the correct data for filtering
|
||||
if typ == "FMS": data = data["fms"]
|
||||
if typ == "ZVEI": data = data["zvei"]
|
||||
if typ == "POC": data = data["poc"]
|
||||
if typ == "POC": data = data["ric"]
|
||||
|
||||
foundFilter = False
|
||||
for i in globals.filterList:
|
||||
|
|
|
|||
Loading…
Reference in a new issue