diff options
author | jaseg <git@jaseg.net> | 2019-09-28 22:56:55 +0200 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2019-09-28 22:56:55 +0200 |
commit | 3acdfe5c194082192f43903c6296981c3c27c1b0 (patch) | |
tree | b441a4fbeb9eb5e7141eec59abd1cf5be5304afc /webapp/pogojig.py | |
parent | 031b6f736187efdc64c525a40c687698701e73e1 (diff) | |
download | pogojig-3acdfe5c194082192f43903c6296981c3c27c1b0.tar.gz pogojig-3acdfe5c194082192f43903c6296981c3c27c1b0.tar.bz2 pogojig-3acdfe5c194082192f43903c6296981c3c27c1b0.zip |
Fix empty template download
Diffstat (limited to 'webapp/pogojig.py')
-rw-r--r-- | webapp/pogojig.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webapp/pogojig.py b/webapp/pogojig.py index a7201d0..e2b1b47 100644 --- a/webapp/pogojig.py +++ b/webapp/pogojig.py @@ -100,6 +100,13 @@ def render_download(): as_attachment=True, attachment_filename=f'{path.splitext(session["filename"])[0]}_pogojig.zip') +@app.route('/pogojig_template_empty.svg') +def static_template(): + return send_file('static/pogojig_template_empty.svg', + mimetype='application/octet-stream', + as_attachment=True, + attachment_filename='pogojig_template_empty.svg') + @app.route('/session_reset', methods=['POST']) @require_session_id def session_reset(): |