Update monitor.py

This commit is contained in:
Waldek 2020-07-10 08:45:35 +02:00 committed by GitHub
parent d115f18fd8
commit 2844417596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -870,7 +870,10 @@ if __name__ == '__main__':
else:
bridges_html = bridges_html.replace('<<<timeout_warning>>>', '')
index_html = index_html.replace('<<<timeout_warning>>>', '')
if BTABLE['SETUP']['BRIDGES']:
index_html = index_html.replace('<<<bridges_display>>>', '<a href="/bridges"><button class="button link">Bridges</button></a>&nbsp;')
else:
index_html = index_html.replace('<<<bridges_display>>>', '')
# Start update loop
update_stats = task.LoopingCall(build_stats)
update_stats.start(FREQUENCY)