Update web_tables.py

Add switch on/off HomeBrew Peers display stats
This commit is contained in:
Waldek 2019-07-19 08:23:36 +02:00 committed by GitHub
parent 2f1417edd7
commit 3b9b2bc524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ def build_hblink_table(_config, _stats_table):
add_hb_peer(_hbp_data['PEERS'][_peer], _stats_table['MASTERS'][_hbp]['PEERS'], _peer)
# Proccess Peer Systems
elif _hbp_data['MODE'] == 'PEER':
elif _hbp_data['MODE'] == 'PEER' and HOMEBREW_INC:
_stats_table['PEERS'][_hbp] = {}
_stats_table['PEERS'][_hbp]['CALLSIGN'] = _hbp_data['CALLSIGN']
_stats_table['PEERS'][_hbp]['LOCATION'] = _hbp_data['LOCATION']