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_