aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/work_pipeline.py
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/work_pipeline.py')
-rw-r--r--fatcat_scholar/work_pipeline.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/work_pipeline.py b/fatcat_scholar/work_pipeline.py
index 191e898..5c32767 100644
--- a/fatcat_scholar/work_pipeline.py
+++ b/fatcat_scholar/work_pipeline.py
@@ -28,7 +28,7 @@ def parse_pages(raw: str) -> Tuple[Optional[int], Optional[int]]:
if not first_raw.isdigit():
return (None, None)
first = int(first_raw)
- if not "-" in raw:
+ if "-" not in raw:
return (first, first)
last_raw = raw.split("-")[-1]
if not last_raw.isdigit():
@@ -301,7 +301,7 @@ class WorkPipeline:
leaf_index = dict()
leaf_list = []
- if not "page_numbers" in issue_meta:
+ if "page_numbers" not in issue_meta:
# TODO: warn
return None
for entry in issue_meta["page_numbers"].get("pages", []):