Skip to content

Commit

Permalink
has_key is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Nov 2, 2023
1 parent b6d782e commit 1166f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedn/fedn/network/api/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_clients(self, limit=None, skip=None, status=False):
"combiner_preferred": element["combiner_preferred"],
"ip": element["ip"],
"status": element["status"],
"last_seen": element["last_seen"] if element.has_key("last_seen") else "",
"last_seen": element["last_seen"] if "last_seen" in element else "",
}

arr.append(obj)
Expand Down

0 comments on commit 1166f31

Please sign in to comment.