Skip to content

Commit

Permalink
integration test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Oct 31, 2023
1 parent 6a6c89c commit df31859
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fedn/fedn/common/tracer/mongotracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit df31859

Please sign in to comment.