From 8bfd0b023ed3c87ec9670cea8940c7419cc87c8a Mon Sep 17 00:00:00 2001 From: UlysseFG Date: Fri, 12 May 2023 17:03:50 -0400 Subject: [PATCH] fix multiple study pools --- backend/fms_core/services/sample.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/fms_core/services/sample.py b/backend/fms_core/services/sample.py index be9a3a5dd..37d661c0d 100644 --- a/backend/fms_core/services/sample.py +++ b/backend/fms_core/services/sample.py @@ -607,10 +607,10 @@ def pool_submitted_samples(samples_info, except Exception as e: errors.append(e) - for study_obj in sample['studies']: - _, errors_study, warnings_study = queue_sample_to_study_workflow(pool_sample_obj, study_obj) - errors.extend(errors_study) - warnings.extend(warnings_study) + for study_obj in sample['studies']: + _, errors_study, warnings_study = queue_sample_to_study_workflow(pool_sample_obj, study_obj) + errors.extend(errors_study) + warnings.extend(warnings_study) return pool_sample_obj, errors, warnings