From df3185917d39f28f0a3230b29a6448650e2ee607 Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 31 Oct 2023 19:00:51 +0100 Subject: [PATCH] integration test fix --- fedn/fedn/common/tracer/mongotracer.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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)