Skip to content

Commit

Permalink
Updated the file in response to the PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
codeshwar-preview[bot] authored Mar 16, 2024
1 parent d014b0c commit 651c741
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions API/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def insert_one(self, collection, document):
def find_one(self, collection, filter, projection=None):
return self.db[collection].find_one(filter, projection=projection)

def find_one_and_delete(self, collection, query):
return self.db[collection].find_one_and_delete(query)
def find_one_and_delete(self, collection, query, projection=None):
return self.db[collection].find_one_and_delete(query, projection=projection)

def update_one(self, collection, query, update, upsert=False):
return self.db[collection].update_one(filter=query, update=update, upsert=upsert)
def update_one(self, collection, filter, update):
return self.db[collection].update_one(filter, update)

0 comments on commit 651c741

Please sign in to comment.