Skip to content

Commit 37d8696

Browse files
committed
Remove empty runs from diff view
1 parent 629ce1f commit 37d8696

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend/app/crud.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@ async def get_runs(
185185
skip: int = 0,
186186
limit: int = 100,
187187
) -> List[models.Run]:
188-
query = select(models.Run).order_by(desc(models.Run.timestamp))
188+
query = (
189+
select(models.Run)
190+
.join(models.BenchmarkResult)
191+
.order_by(desc(models.Run.timestamp))
192+
)
189193

190194
if commit_sha:
191195
query = query.where(models.Run.commit_sha == commit_sha)

0 commit comments

Comments
 (0)