diff options
author | Artem Tarasov | 2015-07-02 16:30:41 +0300 |
---|---|---|
committer | Artem Tarasov | 2015-07-02 16:30:41 +0300 |
commit | 707eb02a8c1ae09a51fc7dc9ae32532fc8e750f4 (patch) | |
tree | c88be843f0dbaab8f31396314aa1fa5d3fce6e54 | |
parent | 31b793033e9d2065b6ccfa47484ce1237b641dfb (diff) | |
download | genenetwork2-707eb02a8c1ae09a51fc7dc9ae32532fc8e750f4.tar.gz |
fix typos
-rwxr-xr-x | 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 f9b27207..201d1452 100755 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -377,7 +377,7 @@ def export(): svg_xml = request.form.get("data", "Invalid data") filename = request.form.get("filename", "manhattan_plot_snp") response = Response(svg_xml, mimetype="image/svg+xml") - response.headers["Content-Disposition"] = "attchment; filename=%s"%filename + response.headers["Content-Disposition"] = "attachment; filename=%s"%filename return response @app.route("/export_pdf", methods = ('POST',)) @@ -390,7 +390,7 @@ def export_pdf(): filepath = "/home/zas1024/gene/wqflask/output/"+filename pdf_file = cairosvg.svg2pdf(bytestring=svg_xml) response = Response(pdf_file, mimetype="application/pdf") - response.headers["Content-Disposition"] = "attchment; filename=%s"%filename + response.headers["Content-Disposition"] = "attachment; filename=%s"%filename return response @app.route("/interval_mapping", methods=('POST',)) |