Commit 45fe4583 authored by Ryan Herbert's avatar Ryan Herbert

sample_set.py action assignment hackiness

assign 'add' to action to avoid an error if all sets are erroneous;
without sacrificing performance for large amounts of sets in the form
parent 183a12dc
Pipeline #19953 failed with stages
in 40 seconds
......@@ -443,6 +443,7 @@ def submit():
length_mapping[len(data[set_type])] = set_type
for p in data[set_type]:
errors = helper.validate(p)
action = "add"
if len(errors) > 0:
p['error'] = errors
error = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment