From 6edb623b9c0d9db17e43b0703517ca9169284ec3 Mon Sep 17 00:00:00 2001 From: Data-Monkey Date: Sun, 4 Jun 2023 14:20:19 +1000 Subject: [PATCH] fix issue #7 plugins not executed --- pialert/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pialert/plugin.py b/pialert/plugin.py index dd68f4a6..bc1ae736 100644 --- a/pialert/plugin.py +++ b/pialert/plugin.py @@ -12,14 +12,14 @@ from helper import timeNow, updateState, get_file_content, write_file from api import update_api #------------------------------------------------------------------------------- -def run_plugin_scripts(db, runType, plugins = conf.plugins): +def run_plugin_scripts(db, runType): # Header updateState(db,"Run: Plugins") mylog('debug', ['[Plugins] Check if any plugins need to be executed on run type: ', runType]) - for plugin in plugins: + for plugin in conf.plugins: shouldRun = False