Skip to content

Commit

Permalink
pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
idocyabra committed Jan 6, 2024
1 parent 0b69e83 commit 70636a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mongoengine/queryset/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,9 @@ def update(

queryset = self.clone()
query = queryset._query
if "__raw__" in update and isinstance(update["__raw__"], list): # Case of Update with Aggregation Pipeline
if "__raw__" in update and isinstance(
update["__raw__"], list
): # Case of Update with Aggregation Pipeline
update = [
transform.update(queryset._document, **{"__raw__": u})
for u in update["__raw__"]
Expand Down

0 comments on commit 70636a2

Please sign in to comment.