_meta unbound #519
This commit is contained in:
@@ -125,7 +125,7 @@
|
|||||||
{
|
{
|
||||||
"function": "alert_down_time",
|
"function": "alert_down_time",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default_value": 8,
|
"default_value": 5,
|
||||||
"options": [],
|
"options": [],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
|
|||||||
@@ -250,6 +250,11 @@ class Notification_obj:
|
|||||||
def construct_notifications(JSON, section):
|
def construct_notifications(JSON, section):
|
||||||
|
|
||||||
jsn = JSON[section]
|
jsn = JSON[section]
|
||||||
|
|
||||||
|
# Return if empty
|
||||||
|
if jsn == []:
|
||||||
|
return '',''
|
||||||
|
|
||||||
tableTitle = JSON[section + "_meta"]["title"]
|
tableTitle = JSON[section + "_meta"]["title"]
|
||||||
headers = JSON[section + "_meta"]["columnNames"]
|
headers = JSON[section + "_meta"]["columnNames"]
|
||||||
|
|
||||||
|
|||||||
@@ -36,10 +36,13 @@ def get_notifications (db):
|
|||||||
|
|
||||||
# prepare variables for JSON construction
|
# prepare variables for JSON construction
|
||||||
json_new_devices = []
|
json_new_devices = []
|
||||||
|
json_new_devices_meta = {}
|
||||||
json_down_devices = []
|
json_down_devices = []
|
||||||
json_events = []
|
json_down_devices_meta = {}
|
||||||
json_ports = []
|
json_events = []
|
||||||
|
json_events_meta = {}
|
||||||
json_plugins = []
|
json_plugins = []
|
||||||
|
json_plugins_meta = {}
|
||||||
|
|
||||||
# Disable reporting on events for devices where reporting is disabled based on the MAC address
|
# Disable reporting on events for devices where reporting is disabled based on the MAC address
|
||||||
sql.execute ("""UPDATE Events SET eve_PendingAlertEmail = 0
|
sql.execute ("""UPDATE Events SET eve_PendingAlertEmail = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user