This commit is contained in:
aniketSaha 2025-08-04 15:59:00 +02:00
commit e8479bd8f1

View File

@ -225,7 +225,7 @@ def get_pu_status():
}
logging.info(f"[PU STATUS] {states}")
active_PUs = [pu for pu, status in states.items() if status != 'OFF']
active_PUs = [index + 1 for index, (pu, status) in enumerate(states.items()) if status != 'Offline']
logging.info(f"[ACTIVE PU] {active_PUs}")
return JSONResponse(content=states)