mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Notification Report page rewrite v0.1📩
This commit is contained in:
@@ -727,38 +727,6 @@ class plugin_object_class:
|
||||
#===============================================================================
|
||||
# Handling of user initialized front-end events
|
||||
#===============================================================================
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# def check_and_run_user_event(db, pluginsState):
|
||||
|
||||
# sql = db.sql # TO-DO
|
||||
# sql.execute(""" select * from Parameters where par_ID = "Front_Event" """)
|
||||
# rows = sql.fetchall()
|
||||
|
||||
# event, param = ['','']
|
||||
# if len(rows) > 0 and rows[0]['par_Value'] != 'finished':
|
||||
# keyValue = rows[0]['par_Value'].split('|')
|
||||
|
||||
# if len(keyValue) == 2:
|
||||
# event = keyValue[0]
|
||||
# param = keyValue[1]
|
||||
# else:
|
||||
# return pluginsState
|
||||
|
||||
# if event == 'test':
|
||||
# pluginsState = handle_test(param, db, pluginsState)
|
||||
# if event == 'run':
|
||||
# pluginsState = handle_run(param, db, pluginsState)
|
||||
|
||||
# # clear event execution flag
|
||||
# sql.execute ("UPDATE Parameters SET par_Value='finished' WHERE par_ID='Front_Event'")
|
||||
|
||||
# # commit to DB
|
||||
# db.commitDB()
|
||||
|
||||
# return pluginsState
|
||||
|
||||
|
||||
def check_and_run_user_event(db, pluginsState):
|
||||
# Check if the log file exists
|
||||
logFile = os.path.join(logPath, "execution_queue.log")
|
||||
|
||||
Reference in New Issue
Block a user