diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-09-13 23:41:07 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-09-13 23:41:07 -0700 |
commit | 419311b5ab69938e3a90a97353038435c50c732c (patch) | |
tree | 420e988bb2f96985a8ecaa7ffebacb1ed54e52a7 | |
parent | 0c166af823215b049dfe2c051820772582ea8eab (diff) | |
download | fatcat-scholar-419311b5ab69938e3a90a97353038435c50c732c.tar.gz fatcat-scholar-419311b5ab69938e3a90a97353038435c50c732c.zip |
bugfix: release_year
-rw-r--r-- | fatcat_scholar/transform.py | 4 |
1 files changed, 2 insertions, 2 deletions
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, |