From 6fa39b4596354fdf34201b4d7e10e05e6167ec6b Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 31 Jan 2022 15:14:14 +0300 Subject: 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-.csv" instead of "myplot.csv" --- wqflask/wqflask/metadata_edits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') 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"} ) -- cgit v1.2.3