From 3e7c00272b264fded13e0629977240d803b03b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Chac=C3=B3n?= Date: Thu, 30 Mar 2023 12:19:23 -0600 Subject: [PATCH] Fix error when multiple airFibers at site --- src/integrationUISP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: