Skip to content

Commit

Permalink
code checks
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Oct 31, 2023
1 parent e3ec001 commit 6a6c89c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion fedn/fedn/network/combiner/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,6 @@ def ModelUpdateRequestStream(self, response, context):

self.tracer.update_client_status(client.name, "offline")


def ModelValidationStream(self, update, context):
""" Model validation stream RPC endpoint. Update status for client is connecting to stream.
Expand Down
8 changes: 4 additions & 4 deletions fedn/fedn/network/dashboard/restservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,15 +821,15 @@ def client_status():
active_trainers_str = client["active_trainers"]
active_validators_str = client["active_validators"]
active_trainers_str = re.sub(
"[^a-zA-Z0-9-:\n\.]", "", active_trainers_str
"[^a-zA-Z0-9-:\n\.]", "", active_trainers_str # noqa: W605
).replace(
"name:", " "
) # noqa: W605
)
active_validators_str = re.sub(
"[^a-zA-Z0-9-:\n\.]", "", active_validators_str
"[^a-zA-Z0-9-:\n\.]", "", active_validators_str # noqa: W605
).replace(
"name:", " "
) # noqa: W605
)
all_active_trainers.extend(
" ".join(active_trainers_str.split(" ")).split()
)
Expand Down

0 comments on commit 6a6c89c

Please sign in to comment.