default query

pull/491/head
simon 1 year ago
parent 64984bc1b3
commit 5334d79d0d
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

@ -130,6 +130,9 @@ class IndexPaginate:
if not self.data:
self.data = {}
if "query" not in self.data.keys():
self.data.update({"query": {"match_all": {}}})
if "sort" not in self.data.keys():
self.data.update({"sort": [{"_doc": {"order": "desc"}}]})

Loading…
Cancel
Save