Fix error when multiple airFibers at site

This commit is contained in:
Robert Chacón 2023-03-30 12:19:23 -06:00 committed by Herbert Wolverson
parent 52a961181e
commit f38553c72b

View File

@ -125,7 +125,7 @@ def buildFullGraph():
download = int(download / 2)
upload = int(download / 2)
if device['identification']['site']['id'] in foundAirFibersBySite:
if (download > foundAirFibersBySite['download']) or (upload > foundAirFibersBySite['upload']):
if (download > foundAirFibersBySite[device['identification']['site']['id']]['download']) or (upload > foundAirFibersBySite[device['identification']['site']['id']]['upload']):
foundAirFibersBySite[device['identification']['site']['id']]['download'] = download
foundAirFibersBySite[device['identification']['site']['id']]['upload'] = upload
else: