diff options
author | zsloan | 2020-01-09 13:57:33 -0600 |
---|---|---|
committer | zsloan | 2020-01-09 13:57:33 -0600 |
commit | 8ce8fae0dc890ca1dad6d48b9ec2e61107c27ae2 (patch) | |
tree | 56b8be7a149b66b76af9f546397db4ee295d0f28 /wqflask | |
parent | 26a8500743293ca7539f31f326376ce19b41f1e7 (diff) | |
download | genenetwork2-8ce8fae0dc890ca1dad6d48b9ec2e61107c27ae2.tar.gz |
CSV export now also uses trait name
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index dfecb63f..ee8bd8a0 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -345,7 +345,7 @@ def export_trait_csv(): logger.info("In export_trait_csv") logger.info("request.form:", request.form) logger.info(request.url) - sample_data = export_trait_data.export_sample_table(request.form) + trait_name, sample_data = export_trait_data.export_sample_table(request.form) logger.info("sample_data - type: %s -- size: %s" % (type(sample_data), len(sample_data))) @@ -358,7 +358,7 @@ def export_trait_csv(): return Response(csv_data, mimetype='text/csv', - headers={"Content-Disposition":"attachment;filename=sample_data.csv"}) + headers={"Content-Disposition":"attachment;filename="+ trait_name + ".csv"}) @app.route('/export_traits_csv', methods=('POST',)) def export_traits_csv(): |