aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/search.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-27 14:19:29 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-27 18:25:58 -0700
commit956e64f47f7d47f2539cd6575c25ec0b6a33e567 (patch)
treeb6775a940f21b3dabdd3e7de3398c2da874914fd /fatcat_scholar/search.py
parent02249d03d086e71a589733280a2f5e32990f72b1 (diff)
downloadfatcat-scholar-956e64f47f7d47f2539cd6575c25ec0b6a33e567.tar.gz
fatcat-scholar-956e64f47f7d47f2539cd6575c25ec0b6a33e567.zip
re-style imports (isort) on all core python files
Diffstat (limited to 'fatcat_scholar/search.py')
-rw-r--r--fatcat_scholar/search.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py
index dccaf07..6522fe3 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -3,27 +3,28 @@ Helpers to make elasticsearch queries.
"""
import copy
-import logging
import datetime
+import logging
from gettext import gettext
-from typing import List, Optional, Any
+from typing import Any, List, Optional
-import sentry_sdk
import elasticsearch
-from elasticsearch_dsl import Search, Q
-from elasticsearch_dsl.response import Response
import fatcat_openapi_client
+import sentry_sdk
+from elasticsearch_dsl import Q, Search
+from elasticsearch_dsl.response import Response
# pytype: disable=import-error
from pydantic import BaseModel
-# pytype: enable=import-error
-
from fatcat_scholar.config import settings
from fatcat_scholar.identifiers import *
-from fatcat_scholar.schema import ScholarDoc
-from fatcat_scholar.query_parse import sniff_citation_query, pre_parse_query
from fatcat_scholar.query_citation import try_fuzzy_match
+from fatcat_scholar.query_parse import pre_parse_query, sniff_citation_query
+from fatcat_scholar.schema import ScholarDoc
+
+# pytype: enable=import-error
+
# i18n note: the use of gettext below doesn't actually do the translation here,
# it just ensures that the strings are caught by babel for translation later