Skip to content

Commit

Permalink
fix lint again
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaAmega committed Dec 17, 2024
1 parent 0579b2c commit 98ab1f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/evidently/ui/dashboards/test_suites.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,12 @@ def get_customdata(test: Test, date):

def get_z_value(test, date) -> float:
ti = points[date].get(test)
default = TEST_2_Z[TestStatus.SKIPPED]

if ti is None:
return TEST_2_Z[TestStatus.SKIPPED]
return default

return TEST_2_Z.get(ti.status)
return TEST_2_Z.get(ti.status) or default

fig = go.Figure(
data=[
Expand Down

0 comments on commit 98ab1f3

Please sign in to comment.