diff --git a/fedn/fedn/common/tracer/mongotracer.py b/fedn/fedn/common/tracer/mongotracer.py index 76402fd29..55711809b 100644 --- a/fedn/fedn/common/tracer/mongotracer.py +++ b/fedn/fedn/common/tracer/mongotracer.py @@ -87,9 +87,7 @@ def set_round_data(self, round_data): def update_client_status(self, client_name, status): datetime_now = datetime.now() - filter_query = {"name": client_name} # Replace with the desired name - - # Define the update operation - update_query = {"$set": {"last_seen": datetime_now, "status": status}} # Replace with the property and value to update + filter_query = {"name": client_name} + update_query = {"$set": {"last_seen": datetime_now, "status": status}} self.clients.update_one(filter_query, update_query)