Skip to content

Commit ea577ea

Browse files
committed
Use an object rather than heterogeneous array for scores.json entries
Signed-off-by: Nico Burns <[email protected]>
1 parent 571a934 commit ea577ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ async function recalc_scores (runs_dir) {
8484
const run = await read_compressed(`./${runs_dir}/${r}`)
8585
console.log(`Calculating score for run ${runs_dir}/${r} (${i}/${run_count})`)
8686
const score = score_run(run, new_run, test_to_areas)
87-
const row = [
87+
const row = {
8888
date,
89-
run.run_info.revision.substring(0, 9),
90-
run.run_info.browser_version,
91-
...score
92-
]
89+
wpt_revision: run.run_info.revision.substring(0, 9),
90+
product_revision: run.run_info.browser_version,
91+
scores: score
92+
}
9393

9494
scores.push(row)
9595
}

0 commit comments

Comments
 (0)