File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ async def get_batch_benchmark_trends(
197197 results = {}
198198
199199 for trend_query in request .trend_queries :
200- key = f"{ trend_query .binary_id } :{ trend_query .benchmark_name } "
200+ key = f"{ trend_query .binary_id } :{ trend_query .benchmark_name } | { trend_query . python_major } . { trend_query . python_minor } "
201201 trends = await crud .get_benchmark_trends (
202202 db ,
203203 benchmark_name = trend_query .benchmark_name ,
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -309,7 +309,9 @@ export default function BenchmarkTrendPage() {
309309 const newTrendData : Record < string , TrendDataPoint [ ] > = { } ;
310310
311311 for ( const [ key , trends ] of Object . entries ( batchResponse . results ) ) {
312- const [ , benchmarkName ] = key . split ( ':' ) ;
312+ // Extract benchmark name from key: format is "binaryId:benchmarkName|pythonVersion"
313+ let benchmarkPart = key . split ( '|' ) [ 0 ] ; // Remove python version part
314+ const [ , benchmarkName ] = benchmarkPart . split ( ':' ) ; // Extract benchmark name
313315 newTrendData [ benchmarkName ] = trends ;
314316 }
315317
You can’t perform that action at this time.
0 commit comments