Skip to content

Commit 1f5a65c

Browse files
Merge pull request #191 from datakind/AdjustModelCardEndpoint
fix: ensuring we are grabbing the most recent run for a model id
2 parents ff5dc68 + 8d64483 commit 1f5a65c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/webapp/routers/front_end_tables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ def get_model_cards(
449449
ModelTable.name == model_name,
450450
ModelTable.inst_id == str_to_uuid(inst_id),
451451
)
452+
.order_by(JobTable.triggered_at.desc())
452453
).first()
453454

454455
if job_result is None or not job_result.model_run_id:

0 commit comments

Comments
 (0)