Skip to content

Commit c3ab628

Browse files
committed
Filter versions with no runs
1 parent 27c8d8d commit c3ab628

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backend/app/crud.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,12 @@ async def get_benchmark_result_by_id(
325325
async def get_python_version_filters(db: AsyncSession) -> List[Dict[str, Any]]:
326326
result = await db.execute(
327327
select(
328-
models.Commit.python_major,
329-
models.Commit.python_minor,
328+
models.Run.python_major,
329+
models.Run.python_minor,
330330
)
331+
.join(models.BenchmarkResult)
331332
.distinct()
332-
.order_by(desc(models.Commit.python_major), desc(models.Commit.python_minor))
333+
.order_by(desc(models.Run.python_major), desc(models.Run.python_minor))
333334
)
334335

335336
versions = []

0 commit comments

Comments
 (0)