Fix for combining raw and regular filters

This commit is contained in:
Filip Kucharczyk
2020-02-04 12:35:03 +01:00
parent b453a96211
commit d287f480e5
2 changed files with 8 additions and 2 deletions

View File

@@ -169,9 +169,9 @@ def query(_doc_cls=None, **kwargs):
key = ".".join(parts)
if op is None or key not in mongo_query:
if key not in mongo_query:
mongo_query[key] = value
elif key in mongo_query:
else:
if isinstance(mongo_query[key], dict) and isinstance(value, dict):
mongo_query[key].update(value)
# $max/minDistance needs to come last - convert to SON