Toy workflow addition

This commit is contained in:
NikolajDanger
2023-06-09 10:57:08 +02:00
parent 52ac5b6576
commit e4b07c385c
10 changed files with 198 additions and 63 deletions

View File

@ -87,8 +87,8 @@ class PythonHandler(BaseHandler):
msg = ""
if type(event[EVENT_RULE].recipe) != PythonRecipe:
msg = "Recipe is not a PythonRecipe. "
if event[EVENT_TYPE] != EVENT_TYPE_WATCHDOG:
msg += f"Event type is not {EVENT_TYPE_WATCHDOG}."
# if event[EVENT_TYPE] != EVENT_TYPE_WATCHDOG:
# msg += f"Event type is not {EVENT_TYPE_WATCHDOG}."
if msg:
return False, msg
else: