Skip to content

Commit

Permalink
blacken
Browse files Browse the repository at this point in the history
  • Loading branch information
cglewis committed Jun 4, 2024
1 parent 80bc4e3 commit e59a476
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/poseidon_api/poseidon_api/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def scrape_prometheus(self):
if "result" in results["data"] and results["data"]["result"]:
for metric in results["data"]["result"]:
if metric["metric"]["hash_id"] in role_hashes:
role_hashes[metric["metric"]["hash_id"]][
"second_role"
] = metric["metric"].get("role", NO_DATA)
role_hashes[metric["metric"]["hash_id"]]["second_role"] = (
metric["metric"].get("role", NO_DATA)
)
role_hashes[metric["metric"]["hash_id"]][
"second_confidence"
] = float(metric["values"][-1][1])
Expand All @@ -145,9 +145,9 @@ def scrape_prometheus(self):
if "result" in results["data"] and results["data"]["result"]:
for metric in results["data"]["result"]:
if metric["metric"]["hash_id"] in role_hashes:
role_hashes[metric["metric"]["hash_id"]][
"third_role"
] = metric["metric"].get("role", NO_DATA)
role_hashes[metric["metric"]["hash_id"]]["third_role"] = (
metric["metric"].get("role", NO_DATA)
)
role_hashes[metric["metric"]["hash_id"]][
"third_confidence"
] = float(metric["values"][-1][1])
Expand Down

0 comments on commit e59a476

Please sign in to comment.