From 4b22a3da5fd9bf7bb56fc5c689e2080909d66628 Mon Sep 17 00:00:00 2001 From: lchen-2101 <73617864+lchen-2101@users.noreply.github.com> Date: Fri, 2 Feb 2024 18:27:01 -0500 Subject: [PATCH] fix: method name updated --- src/entities/listeners.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/listeners.py b/src/entities/listeners.py index c7d3b25..6b03b76 100644 --- a/src/entities/listeners.py +++ b/src/entities/listeners.py @@ -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}