Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 858d0e04 authored by Ryan Herbert's avatar Ryan Herbert delete results when reuploading a file

If the results of a file a maintained after reuploading, any run on
another file would still contain the old version of the file in the
fuse, and file would be marked as deleted.

Not only is it confusing for the user to see a file marked as removed
where all files are seemingly present, but it is also not desirable to
have data that has been overwritten appear in a new analysis.
parent 2a23c579
......@@ -365,6 +365,8 @@ def edit_form():
filename = db.sequence_file[request.vars['id']].filename
if request.vars['filename'] != "":
filename = request.vars['filename']
# file is being reuploaded, remove all existing results_files
db(db.results_file.sequence_file_id == request.vars["id"]).delete()
pre_process = None
if request.vars['pre_process'] != "0":
pre_process = int(request.vars['pre_process'])
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