summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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