Commit 8cc0addb authored by Mikaël Salson's avatar Mikaël Salson Committed by Vidjil Team
Browse files get_original_filename()

parent 34633fc8
import defs
import base64
def get_original_filename(data_file):
return db.sequence_file.data_file.retrieve_file_properties(data_file)['filename']
def get_new_uploaded_filename(data_file, new_filename):
Rename the name given to a data_file uploaded by the user
......@@ -663,7 +663,8 @@ def run_pre_process(pre_process_id, sequence_file_id, clean_before=True, clean_a
out_folder = defs.DIR_PRE_VIDJIL_ID % sequence_file_id
output_filename = get_preprocessed_filename(sequence_file.data_file, sequence_file.data_file2)
output_filename = get_preprocessed_filename(get_original_filename(sequence_file.data_file),
if clean_before:
cmd = "rm -rf "+out_folder
Supports Markdown
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