From 309abe589b00f3405ff5769bebc586445b2d6c6e Mon Sep 17 00:00:00 2001 From: "codeshwar-preview[bot]" <160849357+codeshwar-preview[bot]@users.noreply.github.com> Date: Sat, 16 Mar 2024 18:06:10 +0000 Subject: [PATCH] Updated the file in response to the PR comment --- API/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API/database.py b/API/database.py index 61ea3fa..7e50242 100644 --- a/API/database.py +++ b/API/database.py @@ -20,5 +20,5 @@ def find_one(self, collection, filter, projection=None): def find_one_and_delete(self, collection, query): return self.db[collection].find_one_and_delete(query) - def update_one(self, collection, query, update): - return self.db[collection].update_one(query, {"$set": update}) \ No newline at end of file + def update_one(self, collection, filter_query, update_data): + return self.db[collection].update_one(filter_query, {"$set": update_data}) \ No newline at end of file