Skip to content

Commit ca3c4e5

Browse files
committed
added func description
1 parent 280df44 commit ca3c4e5

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/webapp/routers/models.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -697,21 +697,14 @@ def backfill_model_runs(
697697
stmt = (
698698
update(JobTable)
699699
.where(JobTable.model_id == model_id[0][0].id)
700-
.where(
701-
or_(
702-
JobTable.model_run_id.is_(None),
703-
JobTable.model_run_id == "",
704-
JobTable.model_version.is_(None),
705-
JobTable.model_version == "",
706-
)
700+
.where(or_(
701+
JobTable.model_run_id.is_(None),
702+
JobTable.model_run_id == "",
703+
JobTable.model_version.is_(None),
704+
JobTable.model_version == "",
707705
)
706+
)
708707
.values(model_run_id=mv_run_id, model_version=mv_version)
709-
.returning(
710-
JobTable.id,
711-
JobTable.model_id,
712-
JobTable.model_run_id,
713-
JobTable.model_version,
714-
)
715708
)
716709

717710
result = local_session.get().execute(stmt)

0 commit comments

Comments
 (0)