Skip to content

Commit

Permalink
Merge pull request #28 from Jeff-SearchPilot/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
chelnak authored Mar 4, 2024
2 parents 3ec994e + 16fbe07 commit 0baffcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion status_cake_exporter/_status_cake.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ def list_tests(self, tags: str = "") -> list[dict]:
# Fetch the performance of each test and add it to the response
for test in response:
history = self.get_test_history(test["id"])
test["performance"] = history["data"][0]["performance"]
if history["data"]:
test["performance"] = history["data"][0]["performance"]
else:
logger.warning(f"No performance data found for test ID {test['id']}")

print(response)
return response
Expand Down

0 comments on commit 0baffcc

Please sign in to comment.