From dad5bddfe2b930a08fe6b57c57416754802ffc1f Mon Sep 17 00:00:00 2001 From: Harry Hughes <hugheshi@cardiff.ac.uk> Date: Sun, 29 Jan 2023 16:47:24 +0000 Subject: [PATCH] Replace routes.py --- blog/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blog/routes.py b/blog/routes.py index fd3d18c..4b767fe 100644 --- a/blog/routes.py +++ b/blog/routes.py @@ -24,7 +24,8 @@ def cv(): @app.route('/download') def download(): - return send_file('./static/pdf/cv.pdf', as_attachment=True) + path = "./static/pdf/cv.pdf" + return send_file(path, as_attachment=True) @app.route("/blog") def blog(): -- GitLab