diff options
author | zsloan | 2021-09-13 20:04:30 +0000 |
---|---|---|
committer | zsloan | 2021-09-13 20:04:30 +0000 |
commit | 24e0de14969edb220a03e22d1c9b7e6ed33f6b82 (patch) | |
tree | 623977e22dc02d553ece16d3f8a2f40738e446d8 /wqflask | |
parent | 91d04e5b573107aead1da8482dd9184d9869b82a (diff) | |
download | genenetwork2-24e0de14969edb220a03e22d1c9b7e6ed33f6b82.tar.gz |
Change mapping export filename to use the path passed from run_mapping, instead of the generic mapping_results.csv
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 707b18e1..54314a20 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -1170,7 +1170,7 @@ def export_mapping_results(): results_csv = open(file_path, "r").read() response = Response(results_csv, mimetype='text/csv', - headers={"Content-Disposition": "attachment;filename=mapping_results.csv"}) + headers={"Content-Disposition": "attachment;filename=" + os.path.basename(file_path)}) return response |