Commit 0b5b5f1a authored by Ryan Herbert's avatar Ryan Herbert
Browse files

file.py cast data_file to str

It would seem that sequence_file.data_file cannot be unicode, so we need to cast it to
str.
parent 170c9729
......@@ -281,6 +281,7 @@ def submit():
os.symlink(filepath, defs.DIR_SEQUENCES + file_data['data_file'])
file_data['size_file'] = os.path.getsize(filepath)
file_data['network'] = True
file_data['data_file'] = str(file_data['data_file'])
db.sequence_file[fid] = file_data
link_to_sample_sets(fid, id_dict)
......
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