fix nested queries

This commit is contained in:
j 2018-09-26 09:48:39 +02:00
parent a1909c95b9
commit ba8e0298ad

View file

@ -111,7 +111,8 @@ def parseConditions(conditions, operator, user):
q = parseConditions(condition['conditions'], q = parseConditions(condition['conditions'],
condition.get('operator', '&'), user) condition.get('operator', '&'), user)
if q: if q:
conn.append(q) for conn_ in q:
conn.append(conn_)
pass pass
else: else:
conn.append(parseCondition(condition, user)) conn.append(parseCondition(condition, user))