From 23fcb8111721674967ce3b761fdb2bb69f73f169 Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 9 Jan 2024 15:56:23 +0100 Subject: [PATCH] lint fix --- fedn/fedn/network/storage/statestore/mongostatestore.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/fedn/fedn/network/storage/statestore/mongostatestore.py b/fedn/fedn/network/storage/statestore/mongostatestore.py index 5e229707e..aa7671802 100644 --- a/fedn/fedn/network/storage/statestore/mongostatestore.py +++ b/fedn/fedn/network/storage/statestore/mongostatestore.py @@ -184,9 +184,7 @@ def set_latest_model(self, model_id, session_id=None): """ committed_at = datetime.now() - current_model = self.model.find_one({"key": "current_model"}) - parent_model = None # if session_id is set the it means the model is generated from a session @@ -555,7 +553,6 @@ def get_model_ancestors(self, model_id: str, limit: int): :return: List of model ancestors. :rtype: list """ - model = self.model.find_one({"key": "models", "model": model_id}) current_model_id = model["parent_model"] if model is not None else None result = []