Fix error in NOT in select
This commit is contained in:
parent
dfc0808167
commit
82d02c5c1b
@ -1961,8 +1961,11 @@ class DbWriteBase(DbReadBase):
|
|||||||
"""
|
"""
|
||||||
if len(condition) == 2: # ["AND" [...]] | ["OR" [...]] | ["NOT" expr]
|
if len(condition) == 2: # ["AND" [...]] | ["OR" [...]] | ["NOT" expr]
|
||||||
connector, exprs = condition
|
connector, exprs = condition
|
||||||
for expr in exprs:
|
if connector in ["AND", "OR"]:
|
||||||
evaluate_values(expr, item, db, table, env)
|
for expr in exprs:
|
||||||
|
evaluate_values(expr, item, db, table, env)
|
||||||
|
else: # "NOT"
|
||||||
|
evaluate_values(exprs, item, db, table, env)
|
||||||
elif len(condition) == 3: # (name, op, value)
|
elif len(condition) == 3: # (name, op, value)
|
||||||
(name, op, value) = condition
|
(name, op, value) = condition
|
||||||
# just the ones we need for filter
|
# just the ones we need for filter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user