Commit 4fa0e34f authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix send of mail

parent 82b3e7e1
......@@ -232,8 +232,8 @@ def build_fasta(id_res):
while os.path.exists(lock_query) and i < 2:
i += 1
time.sleep(5)
os.remove(lock_query + ".pending")
if os.path.exists(lock_query):
os.remove(lock_query + ".pending")
return jsonify({"success": True, "status": 1, "status_message": "In progress"})
return jsonify({"success": True, "status": 2, "status_message": "Done",
"gzip": query_fasta.endswith(".gz") or query_fasta.endswith(".gz.sorted")})
......
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