diff options
author | BonfaceKilz | 2022-01-31 15:14:14 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-01-31 15:14:14 +0300 |
commit | 6fa39b4596354fdf34201b4d7e10e05e6167ec6b (patch) | |
tree | abf48e498660edcd4dbd29c2a13fb947932e98c3 /wqflask | |
parent | 52508bd8104172ed9047859eebf85c476e2ad381 (diff) | |
download | genenetwork2-6fa39b4596354fdf34201b4d7e10e05e6167ec6b.tar.gz |
wqflask: Use a more semantic name when downloading samples
* wqflask/wqflask/metadata_edits.py (get_sample_data_as_csv): Save csv
file to be downloaded as "sample-name-<dataset_id>.csv" instead of
"myplot.csv"
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/metadata_edits.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py index c1121774..bceb9f3b 100644 --- a/wqflask/wqflask/metadata_edits.py +++ b/wqflask/wqflask/metadata_edits.py @@ -431,7 +431,7 @@ def get_sample_data_as_csv(dataset_id: str, phenotype_id: int): phenotype_id=str(phenotype_id)), mimetype="text/csv", headers={"Content-disposition": - "attachment; filename=myplot.csv"} + f"attachment; filename=sample-data-{dataset_id}.csv"} ) |