ignore unset flag

This commit is contained in:
Victor Shyba 2021-02-13 20:06:00 -03:00
parent da8a8bd1ef
commit a9a0ac92d7

View file

@ -322,6 +322,8 @@ def expand_query(**kwargs):
kwargs["offset"] = int(kwargs["amount_order"]) - 1 kwargs["offset"] = int(kwargs["amount_order"]) - 1
if 'name' in kwargs: if 'name' in kwargs:
kwargs['name'] = normalize_name(kwargs.pop('name')) kwargs['name'] = normalize_name(kwargs.pop('name'))
if kwargs.get('is_controlling') is False:
kwargs.pop('is_controlling')
query = {'must': [], 'must_not': []} query = {'must': [], 'must_not': []}
collapse = None collapse = None
for key, value in kwargs.items(): for key, value in kwargs.items():