mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-24 10:00:35 -04:00
▶ Ad-hoc event bug fix
This commit is contained in:
1 parent
15d16dcd81
commit
b6451e6e76
9 files changed
+37
-12
No files matched your search
+3
-5
@@ -768,11 +768,9 @@ def check_and_run_user_event(db, all_plugins, pluginsState):
|
||||
# Split the line by '|', and take the third and fourth columns (indices 2 and 3)
|
||||
columns = line.strip().split('|')[2:4]
|
||||
|
||||
if len(columns) != 2:
|
||||
remaining_lines.append(line)
|
||||
continue
|
||||
|
||||
event, param = columns
|
||||
event, param = "", ""
|
||||
if len(columns) == 2:
|
||||
event, param = columns
|
||||
|
||||
if event == 'test':
|
||||
show_events_completed = True
|
||||
|
||||
Reference in new issue
Block a user