Skip to content

Commit

Permalink
fix: method name updated
Browse files Browse the repository at this point in the history
  • Loading branch information
lchen-2101 committed Feb 2, 2024
1 parent 3e0320a commit 4b22a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entities/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def insert_history(
if not attr_hist.has_changes():
continue
if attr.key == "sbl_institution_types":
old_types = [o.as_dict() for o in attr_hist.deleted]
new_types = [{**n.as_dict(), "version": new_version} for n in attr_hist.added]
old_types = [o.as_db_dict() for o in attr_hist.deleted]
new_types = [{**n.as_db_dict(), "version": new_version} for n in attr_hist.added]
changes[attr.key] = {"old": old_types, "new": new_types}
else:
changes[attr.key] = {"old": attr_hist.deleted, "new": attr_hist.added}
Expand Down

0 comments on commit 4b22a3d

Please sign in to comment.