Merge pull request #2810 from lbryio/no_default_order_by

removed default `order_by` for `claim_search`
This commit is contained in:
Lex Berezhny 2020-02-17 17:04:41 -05:00 committed by GitHub
commit 2750eee86d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -418,8 +418,6 @@ def search(constraints) -> Tuple[List, List, int, int, Censor]:
total = count_claims(**constraints)
constraints['offset'] = abs(constraints.get('offset', 0))
constraints['limit'] = min(abs(constraints.get('limit', 10)), 50)
if 'order_by' not in constraints:
constraints['order_by'] = ["claim_hash"]
context = ctx.get()
search_censor = context.get_search_censor()
txo_rows = search_claims(search_censor, **constraints)