aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/search.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/search.py
parent4362e60383bef09d5989830b19ae2d5dec506620 (diff)
downloadfatcat-scholar-eb0c866d4e226606fe86e0f90af10c776e664a5c.tar.gz
fatcat-scholar-eb0c866d4e226606fe86e0f90af10c776e664a5c.zip
lint: small cleanups, mostly E711 and E713
Diffstat (limited to 'fatcat_scholar/search.py')
-rw-r--r--fatcat_scholar/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py
index 5c7aba0..c49bd98 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -232,7 +232,7 @@ def process_query(query: FulltextQuery) -> FulltextHits:
return do_fulltext_search(query)
# try handling raw identifier queries
- if len(query.q.strip().split()) == 1 and not '"' in query.q:
+ if len(query.q.strip().split()) == 1 and '"' not in query.q:
doi = clean_doi(query.q)
if doi:
return do_lookup_query(f'doi:"{doi}"')