Skip to content

Commit 17dd608

Browse files
committed
Can use existing function to get preproc params
1 parent ec089a7 commit 17dd608

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/murfey/server/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,11 +1954,7 @@ def _flush_tomography_preprocessing(message: dict):
19541954
.where(db.DataCollectionGroup.session_id == session_id)
19551955
.where(db.DataCollectionGroup.tag == message["data_collection_group_tag"])
19561956
).first()
1957-
proc_params = murfey_db.exec(
1958-
select(db.TomographyPreprocessingParameters).where(
1959-
db.TomographyPreprocessingParameters.dcg_id == collected_ids.id
1960-
)
1961-
).one()
1957+
proc_params = get_tomo_preproc_params(collected_ids.id)
19621958
if not proc_params:
19631959
visit_name = message["visit_name"].replace("\r\n", "").replace("\n", "")
19641960
logger.warning(

0 commit comments

Comments
 (0)