Skip to content

Commit be7a413

Browse files
committed
Fix: really stupid bug
1 parent 989d76b commit be7a413

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/api/api.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ async def get_camera(camera_id: int):
223223
@self.app.put("/cameras/{camera_id}")
224224
async def update_camera(camera_id: int, updated_fields: CameraBase):
225225
try:
226-
raise Exception("Hiii")
227-
228226
camera = self.db_manager.update_camera(camera_id, updated_fields)
229227

230228
if camera is None:

src/db_manager/db_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def update_camera(self, camera_id, updated_fields):
306306
with self.get_session() as session:
307307
stmt = update(Camera).where(Camera.id == camera_id)
308308

309-
updated_field = updated_fields.model_dump(
309+
updated_fields = updated_fields.model_dump(
310310
exclude_none=True
311311
)
312312

0 commit comments

Comments
 (0)