Skip to content

Commit 8a1e2b7

Browse files
committed
Fix category table IDs
1 parent 7cc4001 commit 8a1e2b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ml_peg/app/build_app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def build_category(
101101
category_layouts = {}
102102
category_tables = {}
103103

104+
# `category` corresponds to the category's directory name
105+
# We will use the loaded `category_title` for IDs/dictionary keys returned
104106
for category in all_layouts:
105107
# Get category name and description
106108
try:
@@ -114,7 +116,7 @@ def build_category(
114116

115117
# Build summary table
116118
summary_table = build_summary_table(
117-
all_tables[category], table_id=f"{category}-summary-table"
119+
all_tables[category], table_id=f"{category_title}-summary-table"
118120
)
119121
category_tables[category_title] = summary_table
120122

@@ -123,7 +125,7 @@ def build_category(
123125
header="Benchmark weights",
124126
columns=list(all_tables[category].keys()),
125127
input_ids=list(all_tables[category].keys()),
126-
table_id=f"{category}-summary-table",
128+
table_id=f"{category_title}-summary-table",
127129
)
128130

129131
# Build full layout with summary table, weight controls, and test layouts

0 commit comments

Comments
 (0)