fix validation of nested queries
This commit is contained in:
parent
7c438dc6b2
commit
c166f19f80
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ def validate_conditions(conditions):
|
|||
if 'conditions' in c:
|
||||
if list(sorted(c.keys())) != ['conditions', 'operator']:
|
||||
raise Exception('invalid query condition', c)
|
||||
validate_conditions(c)
|
||||
validate_conditions(c['conditions'])
|
||||
else:
|
||||
if list(sorted(c.keys())) != ['key', 'operator', 'value']:
|
||||
raise Exception('invalid query condition', c)
|
||||
|
|
Loading…
Reference in a new issue