Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Statistical-Genetics
jass
Commits
7a7871f9
Commit
7a7871f9
authored
Jul 11, 2021
by
Cyril NERIN
Browse files
fix #87
parent
85c461f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
jass/server.py
View file @
7a7871f9
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment