From 419311b5ab69938e3a90a97353038435c50c732c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 13 Sep 2020 23:41:07 -0700 Subject: bugfix: release_year --- fatcat_scholar/transform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py index 50b6810..7ff30fe 100644 --- a/fatcat_scholar/transform.py +++ b/fatcat_scholar/transform.py @@ -478,7 +478,7 @@ def refs_from_grobid(release: ReleaseEntity, tei_dict: dict) -> Sequence[RefStru ), release_ident=release.ident, work_ident=release.work_id, - release_year=release.year, + release_year=release.release_year, index=ref.get("index"), key=ref.get("id"), locator=None, @@ -524,7 +524,7 @@ def refs_from_release_refs(release: ReleaseEntity) -> Sequence[RefStructured]: ), release_ident=release.ident, work_ident=release.work_id, - release_year=release.year, + release_year=release.release_year, index=ref.index, key=ref.key, locator=ref.locator, -- cgit v1.2.3