From e604780dd939f8909df0288da4127d2e5d2c697c Mon Sep 17 00:00:00 2001 From: yuvaneshkm Date: Sat, 28 Sep 2024 01:33:29 +0530 Subject: [PATCH] updated_version_1.2 --- src/dbsconnector/databases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbsconnector/databases.py b/src/dbsconnector/databases.py index f798800..e66ac07 100644 --- a/src/dbsconnector/databases.py +++ b/src/dbsconnector/databases.py @@ -88,5 +88,5 @@ def upload_object( def load_object(self, database: str, collection_name: str, object_name: str): database_connect = self.mongoclinet[database] collection = database_connect[collection_name] - object_ = collection.find_one({"obajct_name": object_name}) + object_ = collection.find_one({"object_name": object_name}) return object_