From d348c7226845cc2dbe85f84d39baec1a0154553c Mon Sep 17 00:00:00 2001 From: Waldek Date: Fri, 12 Mar 2021 06:48:13 +0100 Subject: [PATCH] small changes --- monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.py b/monitor.py index fb45175..421f914 100644 --- a/monitor.py +++ b/monitor.py @@ -776,7 +776,7 @@ class dashboard(WebSocketServerProtocol): # ddbridges = False logging.info('WebSocket connection open.') self.factory.register(self) - if URL_PATH == "bridges": + if BRIDGES and BRIDGES_INC and BTABLE['SETUP']['BRIDGES']: self.sendMessage(('b' + btemplate.render(_table=BTABLE,themec=THEME_COLOR,dbridges=BTABLE['SETUP']['BRIDGES'],auth=WEB_AUTH)).encode('utf-8')) self.sendMessage(('c' + ctemplate.render(_table=CTABLE,themec=THEME_COLOR,dbridges=BTABLE['SETUP']['BRIDGES'],auth=WEB_AUTH,emaster=EMPTY_MASTERS)).encode('utf-8')) self.sendMessage(('p' + ptemplate.render(_table=CTABLE,themec=THEME_COLOR,dbridges=BTABLE['SETUP']['BRIDGES'],auth=WEB_AUTH)).encode('utf-8'))