From c6a8af1a0633a955acc5241e0dc60e9f72ae6305 Mon Sep 17 00:00:00 2001 From: Sergiusz Warga Date: Wed, 25 Nov 2020 21:33:16 +0100 Subject: [PATCH] Fied relative path for denali --- app/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index f2fa784..e386f02 100644 --- a/app/routes.py +++ b/app/routes.py @@ -17,7 +17,7 @@ def llpsi(): @app.route('/latin/llpsi/') def pensum(pensum_id): - filename = 'app/templates/Pensa/' + pensum_id + '.html' + filename = 'templates/Pensa/' + pensum_id + '.html' with open(filename, 'r') as file: return render_template('LLPSI/Pensum_cloze.html', pensum_title=pensum_id.replace('_', ' '), pensum_content=file.read())