Skip to content

Commit

Permalink
Fix update methods in dbh
Browse files Browse the repository at this point in the history
  • Loading branch information
Georges-Antoine Assi committed Sep 14, 2023
1 parent fdd31cd commit bce48c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/handler/db_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def update_rom(self, id: int, data: dict, session: Session):
return session.execute(
update(Rom)
.where(Rom.id == id)
.values(*data)
.values(**data)
.execution_options(synchronize_session="evaluate")
)

Expand Down Expand Up @@ -127,7 +127,7 @@ def update_user(self, id: int, data: dict, session: Session):
session.execute(
update(User)
.where(User.id == id)
.values(*data)
.values(**data)
.execution_options(synchronize_session="evaluate")
)

Expand Down

0 comments on commit bce48c7

Please sign in to comment.