From 08c1a9e880427bc5353b6ea6315e16a5c9990c30 Mon Sep 17 00:00:00 2001 From: Waldek Date: Thu, 2 Jul 2020 13:27:44 +0200 Subject: [PATCH] Update monitor.py --- monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor.py b/monitor.py index 6f73e91..89b1987 100644 --- a/monitor.py +++ b/monitor.py @@ -468,7 +468,7 @@ def build_stats(): if CONFIG: table = 'd' + dtemplate.render(_table=CTABLE) dashboard_server.broadcast(table) - if BRIDGES and BRIDGES_INC: + if BRIDGES and BRIDGES_INC and BTABLE['SETUP']['BRIDGES']: table = 'b' + btemplate.render(_table=BTABLE) dashboard_server.broadcast(table) build_time = now @@ -587,7 +587,7 @@ def process_message(_bmessage): logging.debug('got BRIDGE_SND opcode') BRIDGES = load_dictionary(_bmessage) BRIDGES_RX = strftime('%Y-%m-%d %H:%M:%S', localtime(time())) - if BRIDGES_INC: + if BRIDGES_INC and BTABLE['SETUP']['BRIDGES']: BTABLE['BRIDGES'] = build_bridge_table(BRIDGES) elif opcode == OPCODE['LINK_EVENT']: