Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Jan 9, 2024
1 parent 771b3c7 commit 23fcb81
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fedn/fedn/network/storage/statestore/mongostatestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = []
Expand Down

0 comments on commit 23fcb81

Please sign in to comment.