Commit c42ddcfe authored by HERBERT Ryan's avatar HERBERT Ryan

controllers/ prevent run with low disk space

parent d5e8fb0a
......@@ -131,6 +131,9 @@ def init_from_csv():
# need patient admin permission
def run_request():
error = ""
enough_space = check_enough_space(def.DIR_RESULTS)
if not enough_space:
return error_message("Uploads are temporarily disabled. System admins have been made aware of the situation.")
##TODO check
if not "sequence_file_id" in request.vars :
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