aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-09-13 23:41:07 -0700
committerBryan Newbold <bnewbold@archive.org>2020-09-13 23:41:07 -0700
commit419311b5ab69938e3a90a97353038435c50c732c (patch)
tree420e988bb2f96985a8ecaa7ffebacb1ed54e52a7 /fatcat_scholar
parent0c166af823215b049dfe2c051820772582ea8eab (diff)
downloadfatcat-scholar-419311b5ab69938e3a90a97353038435c50c732c.tar.gz
fatcat-scholar-419311b5ab69938e3a90a97353038435c50c732c.zip
bugfix: release_year
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/transform.py4
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,