Commit 9c2f883a authored by Mikaël Salson's avatar Mikaël Salson

models/ Remove temporary fused file

In case of success we can remove the file in the temporary directory as it is
stored elsewhere through Web2py mechanism. Storing it twice was space

We modifie the log message correspondingly so that it can display the real
stored file.
parent bcaa8f16
......@@ -536,9 +536,12 @@ def run_fuse(id_file, id_config, id_data, sample_set_id, clean_before=True, clea
p = Popen(clean_cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
res = {"message": "[%s] c%s: 'fuse' finished - %s" % (id_data, id_config, output_file)}
res = {"message": "[%s] c%s: 'fuse' finished - %s" % (id_data, id_config, db.fused_file[id_fuse].fused_file)}
# Remove temporary fused file
return "SUCCESS"
def custom_fuse(file_list):
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