:wqMerge branch 'main' of https://git.nehemis.fr/aniketSaha/NorthStar-HMI
This commit is contained in:
commit
e8479bd8f1
2
main.py
2
main.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user