Skip to content

Commit

Permalink
Pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
idocyabra authored and bagerard committed Aug 21, 2024
1 parent 94e4c90 commit 5a8b051
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions mongoengine/queryset/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,14 @@ def upsert_one(self, write_concern=None, read_concern=None, **update):
document = self._document.objects.with_id(atomic_update.upserted_id)
return document

def update_one(self, upsert=False, write_concern=None, full_result=False, array_filters=None, **update):
def update_one(
self,
upsert=False,
write_concern=None,
full_result=False,
array_filters=None,
**update,
):
"""Perform an atomic update on the fields of the first document
matched by the query.
Expand Down Expand Up @@ -662,9 +669,13 @@ def update_one(self, upsert=False, write_concern=None, full_result=False, array_
)

def modify(
self, upsert=False, full_response=False, remove=False, new=False,
array_filters=None,
**update
self,
upsert=False,
full_response=False,
remove=False,
new=False,
array_filters=None,
**update,
):
"""Update and return the updated document.
Expand Down

0 comments on commit 5a8b051

Please sign in to comment.