fix(query): ignore 5th filter parameter
It doesn't do anything, but many old charts, etc. still have it present, no point erroring out. Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
521881363f
commit
038bd44d08
1 changed files with 3 additions and 0 deletions
|
|
@ -492,6 +492,9 @@ class Engine:
|
|||
elif len(filter) == 4:
|
||||
doctype, field, operator, value = filter
|
||||
self._apply_filter(field, value, operator, doctype, collect=collect)
|
||||
elif len(filter) == 5:
|
||||
doctype, field, operator, value, _ = filter
|
||||
self._apply_filter(field, value, operator, doctype, collect=collect)
|
||||
else:
|
||||
raise ValueError(f"Unknown filter format: {filter}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue