aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-03 19:37:50 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-03 19:37:53 -0700
commit2c00ac51ee7dd76a60c8b2c16a9dade8b115d907 (patch)
tree9789226b9d92d0db098b7fb7dea374d861392ef9
parent55273e1b523acdf7a8cd493248bfc21bc527991c (diff)
downloadfatcat-scholar-2c00ac51ee7dd76a60c8b2c16a9dade8b115d907.tar.gz
fatcat-scholar-2c00ac51ee7dd76a60c8b2c16a9dade8b115d907.zip
fixes from running pipeline
Not caught by mypi/lint? Hrm.
-rw-r--r--fatcat_scholar/transform.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py
index 4538d70..953ebff 100644
--- a/fatcat_scholar/transform.py
+++ b/fatcat_scholar/transform.py
@@ -187,6 +187,7 @@ def transform_heavy(heavy: IntermediateBundle) -> Optional[ScholarDoc]:
work_ident: Optional[str] = None
abstracts: List[ScholarAbstract] = []
fulltext: Optional[ScholarFulltext] = None
+ primary_release: Optional[ReleaseEntity] = None
ia_sim: Optional[ScholarSim] = None
if heavy.sim_fulltext is not None:
@@ -255,7 +256,7 @@ def transform_heavy(heavy: IntermediateBundle) -> Optional[ScholarDoc]:
if container.extra.get('road'):
tags.append('road')
tags.append('oa')
- if container.extra('szczepanski'):
+ if container.extra.get('szczepanski'):
tags.append('szczepanski')
tags.append('oa')
if container.extra.get('ia', {}).get('longtail_oa'):