aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/search.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-02 18:05:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-02 18:05:23 -0700
commit78f08280edea4ff65ca613ad30005c45cc48dea6 (patch)
tree6cb0408dde68f4ca8093fef18956c85f58882ccf /python/fatcat_web/search.py
parent46b4f588b2e58fe5d2d4b1a885c095f24c6cd400 (diff)
downloadfatcat-78f08280edea4ff65ca613ad30005c45cc48dea6.tar.gz
fatcat-78f08280edea4ff65ca613ad30005c45cc48dea6.zip
python: isort everything
Diffstat (limited to 'python/fatcat_web/search.py')
-rw-r--r--python/fatcat_web/search.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py
index 95f1f5c9..73781016 100644
--- a/python/fatcat_web/search.py
+++ b/python/fatcat_web/search.py
@@ -4,17 +4,18 @@ Helpers for doing elasticsearch queries (used in the web interface; not part of
the formal API)
"""
-import sys
import datetime
+import sys
from dataclasses import dataclass
-from typing import List, Optional, Any
+from typing import Any, List, Optional
import elasticsearch
-from elasticsearch_dsl import Search, Q
import elasticsearch_dsl.response
+from elasticsearch_dsl import Q, Search
from fatcat_web import app
+
class FatcatSearchError(Exception):
def __init__(self, status_code: int, name: str, description: str = None):