Commit 8e7f2bc1 authored by Vidjil's avatar Vidjil

controllerS/ Each sample was attributed to an increasing list of sample set IDs

id_dict was always increasing and was never reset. Thus the last sample were affected to
all the specific sample sets from the previous samples in the form.

Solves #3199
parent 77a3fa5e
Pipeline #22824 failed with stages
in 23 seconds
......@@ -207,7 +207,7 @@ def submit():
pre_process = int(data['pre_process'])
pre_process_flag = "WAIT"
sets, id_dict, errors = validate_sets(data['set_ids'])
sets, common_id_dict, errors = validate_sets(data['set_ids'])
data['sets'] = sets
data['errors'] = errors
......@@ -253,6 +253,8 @@ def submit():
f['message'].append("You must reselect the file for it to be uploaded")
id_dict = common_id_dict.copy()
for key in f['id_dict']:
if key not in id_dict:
id_dict[key] = []
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment