aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-12 13:24:17 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-12 13:24:17 -0700
commit7603dd0ade23e22197acd1fd1d35962c314cf797 (patch)
treef1adc0434f81f0cccb1ac582262ed222da15866a
parentcfdea6c069d2a97139ddcbb08efa4aea43230f0f (diff)
downloadfatcat-scholar-7603dd0ade23e22197acd1fd1d35962c314cf797.tar.gz
fatcat-scholar-7603dd0ade23e22197acd1fd1d35962c314cf797.zip
fmt/lint tweaks
-rw-r--r--fatcat_scholar/search.py7
-rw-r--r--fatcat_scholar/web.py1
2 files changed, 2 insertions, 6 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py
index cc972bd..b2c5460 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -218,11 +218,8 @@ def do_fulltext_search(
)
# simplified version of basic_fulltext query, for highlighting
- highlight_query= Q(
- "query_string",
- query=query.q,
- default_operator="AND",
- lenient=True,
+ highlight_query = Q(
+ "query_string", query=query.q, default_operator="AND", lenient=True,
)
search = search.highlight(
"abstracts.body",
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py
index 4110ddb..866214e 100644
--- a/fatcat_scholar/web.py
+++ b/fatcat_scholar/web.py
@@ -4,7 +4,6 @@ This contains the FastAPI web application and RESTful API.
So far there are few endpoints, so we just put them all here!
"""
-import sys
import babel.support
from fastapi import FastAPI, APIRouter, Request, Depends, Response
from fastapi.staticfiles import StaticFiles