mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-05 14:23:32 +00:00
ignore empty filters parameter (#1783)
* ignore empty filters parameter * Add latest docstring and tutorial changes Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
a8c2cdc565
commit
845905e418
@ -82,6 +82,10 @@ def _format_filters(filters):
|
||||
Put filter values into a list and remove filters with null value.
|
||||
"""
|
||||
new_filters = {}
|
||||
if filters is None:
|
||||
logger.warning(f"Request with deprecated filter format ('\"filters\": null'). "
|
||||
f"Remove empty filters from params to be compliant with future versions")
|
||||
else:
|
||||
for key, values in filters.items():
|
||||
if values is None:
|
||||
logger.warning(f"Request with deprecated filter format ('{key}: null'). "
|
||||
|
Loading…
x
Reference in New Issue
Block a user