Skip to content

Commit

Permalink
DAL: Remember to update Record attrs on Record.update()
Browse files Browse the repository at this point in the history
  • Loading branch information
cjao committed Nov 1, 2023
1 parent 9a896a6 commit a67e38e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions covalent_dispatcher/_dal/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ def update(self, session: Session, *, values: dict):
equality_filters={"id": self.primary_key},
membership_filters={},
)
for k, v in values.items():
self._attrs[k] = v

def incr(self, session: Session, *, increments: dict):
"""Increment the fields of the corresponding record."""
Expand Down

0 comments on commit a67e38e

Please sign in to comment.