Fix firmware status update
All checks were successful
ci/woodpecker/push/docker Pipeline was successful

This commit is contained in:
Oliver Traber 2025-03-23 16:36:20 +00:00
parent c5e1a296ee
commit a5aeb1d53b
Signed by: Bluemedia
GPG key ID: C0674B105057136C

View file

@ -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()