Commit cf31f66a authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud
Browse files

models/ run_copy takes name of the original filename

run_copy copied the sequence file into the result file. But the filename used was the internal Web2py filename (which is quite long).
And it was reencoded for the results_file which lead to a very long filename which was likely to exceed the limit of the
filename length.
Now we take the original filename for the data file, which will lead to a much shorter encoded filename
parent 1d1ecf62
......@@ -431,7 +431,7 @@ def run_copy(id_file, id_config, id_data, clean_before=False, clean_after=False)
db.results_file[id_data] = dict(status = "ready",
run_date = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S'),
#data_file = row[0].data_file
data_file = stream
data_file =, row[0].filename)
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