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
if 'name' in kwargs:
kwargs['name'] = normalize_name(kwargs.pop('name'))
if kwargs.get('is_controlling') is False:
kwargs.pop('is_controlling')
query = {'must': [], 'must_not': []}
collapse = None
for key, value in kwargs.items():