Fix firmware status update
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
This commit is contained in:
parent
c5e1a296ee
commit
a5aeb1d53b
1 changed files with 1 additions and 1 deletions
|
@ -62,5 +62,5 @@ async def update_firmware_status(chargepoint_identity: str, request_id: int, sta
|
|||
with SessionLocal() as db:
|
||||
db_chargepoint = db.query(ChargePoint).filter(ChargePoint.identity == chargepoint_identity).first()
|
||||
db_firmware_update = db.query(FirmwareUpdate).filter(FirmwareUpdate.chargepoint_id == db_chargepoint.id).filter(FirmwareUpdate.request_id == request_id).first()
|
||||
db_firmware_update.status = status
|
||||
db_firmware_update.status = FirmwareUpdateStatus(status)
|
||||
db.commit()
|
||||
|
|
Loading…
Add table
Reference in a new issue