summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/transform.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-27 14:49:58 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-27 18:25:58 -0700
commiteb0c866d4e226606fe86e0f90af10c776e664a5c (patch)
tree732be3b53c9947ae8b416e4aaf0b8bb25b3998b9 /fatcat_scholar/transform.py
parent4362e60383bef09d5989830b19ae2d5dec506620 (diff)
downloadfatcat-scholar-eb0c866d4e226606fe86e0f90af10c776e664a5c.tar.gz
fatcat-scholar-eb0c866d4e226606fe86e0f90af10c776e664a5c.zip
lint: small cleanups, mostly E711 and E713
Diffstat (limited to 'fatcat_scholar/transform.py')
-rw-r--r--fatcat_scholar/transform.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py
index 3213b8d..f805e7b 100644
--- a/fatcat_scholar/transform.py
+++ b/fatcat_scholar/transform.py
@@ -588,7 +588,7 @@ def transform_heavy(heavy: IntermediateBundle) -> Optional[ScholarDoc]:
file_ident=fulltext.file_ident,
release_ident=fulltext.release_ident,
)
- if ia_sim and not AccessType.ia_sim in access_dict:
+ if ia_sim and AccessType.ia_sim not in access_dict:
access_dict[AccessType.ia_sim] = ScholarAccess(
access_type=AccessType.ia_sim,
access_url=f"https://archive.org/details/{ia_sim.issue_item}/page/{ia_sim.first_page}",
@@ -608,11 +608,11 @@ def transform_heavy(heavy: IntermediateBundle) -> Optional[ScholarDoc]:
for _, acc in access_dict.items():
if "://www.medrxiv.org/" in acc.access_url:
biblio.container_name = "medRxiv"
- if biblio.release_stage == None:
+ if biblio.release_stage is None:
biblio.release_stage = "submitted"
elif "://www.biorxiv.org/" in acc.access_url:
biblio.container_name = "bioRxiv"
- if biblio.release_stage == None:
+ if biblio.release_stage is None:
biblio.release_stage = "submitted"
return ScholarDoc(