From 7603dd0ade23e22197acd1fd1d35962c314cf797 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 12 Aug 2020 13:24:17 -0700 Subject: fmt/lint tweaks --- fatcat_scholar/search.py | 7 ++----- fatcat_scholar/web.py | 1 - 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 -- cgit v1.2.3