small changes

This commit is contained in:
Waldek 2021-03-12 06:48:13 +01:00 committed by GitHub
parent e790118396
commit d348c72268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'))