Skip to content

Commit 265bd1b

Browse files
committed
Pass database whereever needed rather than defaulting
1 parent 1228d25 commit 265bd1b

File tree

2 files changed

+98
-101
lines changed

2 files changed

+98
-101
lines changed

src/murfey/server/api/workflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def register_completed_tilt_series(
768768
db.commit()
769769
for ts in tilt_series_db:
770770
if (
771-
check_tilt_series_mc(ts.id)
771+
check_tilt_series_mc(ts.id, db)
772772
and not ts.processing_requested
773773
and ts.tilt_series_length > 2
774774
):
@@ -795,9 +795,9 @@ def register_completed_tilt_series(
795795
machine_config = get_machine_config(instrument_name=instrument_name)[
796796
instrument_name
797797
]
798-
tilts = get_all_tilts(ts.id)
799-
ids = get_job_ids(ts.id, collected_ids[3].id)
800-
preproc_params = get_tomo_proc_params(ids.dcgid)
798+
tilts = get_all_tilts(ts.id, db)
799+
ids = get_job_ids(ts.id, collected_ids[3].id, db)
800+
preproc_params = get_tomo_proc_params(ids.dcgid, db)
801801

802802
first_tilt = db.exec(
803803
select(Tilt).where(Tilt.tilt_series_id == ts.id)

0 commit comments

Comments
 (0)