Commit f17c27dd authored by Ryan Herbert's avatar Ryan Herbert

file.py, sample_set.py add message to element after insert/update

this was causing an issue when adding/updating data
parent 7b37473e
......@@ -222,8 +222,6 @@ def submit():
error = True
continue
f['message'] = []
file_data = dict(sampling_date=f['sampling_date'],
info=f['info'],
pre_process_id=pre_process,
......@@ -246,6 +244,7 @@ def submit():
f['id'] = fid = db.sequence_file.insert(**file_data)
action = "add"
f['message'] = []
mes = "file (%d) %s %sed" % (f["id"], f["filename"], action)
f['message'].append(mes)
f['message'].append("You must reselect the file for it to be uploaded")
......
......@@ -446,8 +446,6 @@ def submit():
error = True
continue
p['message'] = []
register = False
reset = False
......@@ -494,6 +492,7 @@ def submit():
p['error'].append("permission denied")
error = True
p['message'] = []
mes = "%s (%s) %s %sed" % (set_type, id_sample_set, name, action)
p['message'].append(mes)
log.info(mes, extra={'user_id': auth.user.id, 'record_id': p['id'], 'table_name': 'patient'})
......
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