Commit 7a7871f9 authored by Cyril  NERIN's avatar Cyril NERIN
Browse files

fix #87

parent 85c461f4
......@@ -176,12 +176,18 @@ class ProjectGenomeMethodView(MethodView):
@blp_projects.route("/<project_id>/genome_full")
class ProjectGenomeFullMethodView(MethodView):
def get(self, project_id):
Type_of_Analysis = Project(id=project_id).get_type_of_analysis()
if(Type_of_Analysis == Project.LOCAL_ANALYSIS):
Fichier = "local_analysis_result.csv"
else:
Fichier = "genome_full.csv"
try:
return send_file(
Project(id=project_id).get_csv_path(),
mimetype="text/csv",
as_attachment=True,
attachment_filename="genome_full.csv",
attachment_filename=Fichier,
)
except FileNotFoundError:
status = Project(id=project_id).status
......
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