Skip to content

Commit bb0fe1c

Browse files
committed
Lets fucking goooo
1 parent c7261c2 commit bb0fe1c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/db_manager/db_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def update_camera(self, camera_id, updated_fields):
322322

323323
return camera.serialize() if camera is not None else None
324324

325-
def update_zone(self, zone_id, update):
325+
def update_zone(self, zone_id, update_zone):
326326
if self.get_zone(zone_id) is None: return None
327327

328328
with self.get_session() as session:
@@ -332,7 +332,7 @@ def update_zone(self, zone_id, update):
332332
delete(ParkingZonePoint).where(ParkingZonePoint.parking_zone_id == zone_id)
333333
)
334334

335-
for point in update.points:
335+
for point in update_zone.points:
336336
session.add(
337337
ParkingZonePoint(
338338
parking_zone_id=zone_id,
@@ -345,7 +345,7 @@ def update_zone(self, zone_id, update):
345345

346346
stmt = update(ParkingZone).where(ParkingZone.id == zone_id)
347347

348-
update_dump = update.model_dump(
348+
update_dump = update_zone.model_dump(
349349
exclude_none=True,
350350
exclude={'points'}
351351
)

0 commit comments

Comments
 (0)