From 2c00ac51ee7dd76a60c8b2c16a9dade8b115d907 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Jun 2020 19:37:50 -0700 Subject: fixes from running pipeline Not caught by mypi/lint? Hrm. --- fatcat_scholar/transform.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'): -- cgit v1.2.3