From 9f99cf6926b09f906b21d64b631e797fdbb51bac Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 29 Jun 2020 21:24:02 -0700 Subject: make fmt --- fatcat_scholar/search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fatcat_scholar/search.py') diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index a2e19bc..0985081 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -207,7 +207,7 @@ def do_fulltext_search( number_of_fragments=2, fragment_size=300, # TODO: this will fix highlight encoding, but requires ES 7.x - #encoder="html", + # encoder="html", ) # sort order @@ -270,8 +270,8 @@ def do_fulltext_search( if type(h[key]) is str: h[key] = h[key].encode("utf8", "ignore").decode("utf8") # ensure collapse_key is a single value, not an array - if type(h['collapse_key']) == list: - h['collapse_key'] = h['collapse_key'][0] + if type(h["collapse_key"]) == list: + h["collapse_key"] = h["collapse_key"][0] count_found: int = int(resp.hits.total) count_returned = len(results) -- cgit v1.2.3