diff --git a/src/integrationUISP.py b/src/integrationUISP.py index 3f239f88..fdddea6e 100644 --- a/src/integrationUISP.py +++ b/src/integrationUISP.py @@ -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: