Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Clean up imports
Artur Smęt956a544e5815
diff --git a/saleor/search/backends/dashboard.py b/saleor/search/backends/dashboard.pyindex 9a320d30d0..7879b9084d 100644--- a/saleor/search/backends/dashboard.py+++ b/saleor/search/backends/dashboard.py@@ -1,6 +1,8 @@+from collections import defaultdict+from . import elasticsearch5-from .base import BaseSearchQueryfrom ..index import get_indexed_models+from .base import BaseSearchQueryCONTENT_TYPES_MAP = {model.indexed_get_content_type(): model@@ -80,7 +82,6 @@ class DashboardSearchResults(elasticsearch5.Elasticsearch5SearchResults):params['size'] = self.stop - self.start# Send to Elasticsearchhits = self.backend.es.search(**params)- from collections import defaultdictsearch_hits = defaultdict(list)scores = {}for hit in hits['hits']['hits']: