Skip to content

Commit f06651f

Browse files
committed
Contains clause cannot be written with in
1 parent f72ab65 commit f06651f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/murfey/server/api/workflow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ def register_dc_group(
174174
select(DataCollectionGroup)
175175
.where(DataCollectionGroup.session_id == session_id)
176176
.where(DataCollectionGroup.sample == dcg_params.sample)
177-
.where(f"/Sample{dcg_params.sample}/Atlas" in DataCollectionGroup.tag)
177+
.where(
178+
col(DataCollectionGroup.tag).contains(f"/Sample{dcg_params.sample}/Atlas")
179+
)
178180
).all():
179181
# Case where we switch from atlas to processing
180182
dcg_murfey[0].tag = dcg_params.tag or dcg_murfey[0].tag

tests/server/api/test_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test_register_dc_group_new_dcg_old_atlas(
233233

234234
# Request new dcg registration with atlas experiment type and new processing tag
235235
dcg_params = DCGroupParameters(
236-
experiment_type_id=44,
236+
experiment_type_id=37,
237237
tag="second_processing_tag",
238238
atlas="/path/to/Sample10/Atlas/Atlas_1.jpg",
239239
sample=10,

0 commit comments

Comments
 (0)