Fix table diff versioned information · python/memory.python.org@abe1c88 · GitHub
Skip to content

Commit abe1c88

Browse files
committed
Fix table diff versioned information
1 parent 37d8696 commit abe1c88

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

backend/app/routers/benchmarks.py

Lines changed: 1 addition & 1 deletion

frontend/src/app/build-comparison/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ export default function BuildComparisonPage() {
274274
const newTrendData: Record<string, Record<string, TrendDataPoint[]>> = {};
275275

276276
for (const [key, trends] of Object.entries(batchResponse.results)) {
277-
const [binaryId, benchmarkName] = key.split(':');
277+
// Extract binary ID and benchmark name from key: format is "binaryId:benchmarkName|pythonVersion"
278+
let benchmarkPart = key.split('|')[0]; // Remove python version part
279+
const [binaryId, benchmarkName] = benchmarkPart.split(':'); // Extract binary ID and benchmark name
278280
if (!newTrendData[binaryId]) {
279281
newTrendData[binaryId] = {};
280282
}

frontend/src/app/trends/page.tsx

Lines changed: 3 additions & 1 deletion

0 commit comments

Comments
 (0)