Skip to content

Commit b3b4f35

Browse files
committed
fix(scores): key error on empty state
1 parent 37c1fa4 commit b3b4f35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testgen/ui/views/quality_dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def render(self, *, project_code: str, **_kwargs) -> None:
3131
"table_groups_count": int(project_summary["table_groups_ct"]),
3232
"profiling_runs_count": int(project_summary["profiling_runs_ct"]),
3333
},
34-
"scores": [format_score_card(score) for score in get_all_score_cards(project_code) if score["score"] or score["cde_score"] or score["categories"]],
34+
"scores": [format_score_card(score) for score in get_all_score_cards(project_code) if score.get("score") or score.get("cde_score") or score.get("categories")],
3535
},
3636
on_change_handlers={
3737
"RefreshData": refresh_data,

0 commit comments

Comments
 (0)