use normalized instead of claim_name for claim search

This commit is contained in:
Lex Berezhny 2020-07-20 22:44:18 -04:00
parent c57080711e
commit 72ddb0c195

View file

@ -134,7 +134,7 @@ def select_claims(cols: List = None, for_count=False, **constraints) -> Select:
constraints['reposted_claim_hash'] = unhexlify(constraints.pop('reposted_claim_id'))[::-1]
if 'name' in constraints:
constraints['claim_name'] = normalize_name(constraints.pop('name'))
constraints['normalized'] = normalize_name(constraints.pop('name'))
if 'public_key_id' in constraints:
constraints['public_key_hash'] = (