From b384354e95200b2f2baa76681536387ddbde22bc Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 11 Mar 2022 20:05:18 +0100 Subject: [PATCH] typo in path.join --- octomode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/octomode.py b/octomode.py index 6ff8cef..10a8485 100755 --- a/octomode.py +++ b/octomode.py @@ -130,12 +130,12 @@ def stylesheet(name): @APP.route('//html/') def html(name): - url = os.path.join(APP.config["APPLICATION_ROOT"], f'/{ name }/', 'preview.html') + url = os.path.join(APP.config["APPLICATION_ROOT"], name, 'preview.html') return render_template('iframe.html', url=url, name=name.strip(), application_root=APP.config["APPLICATION_ROOT"]) @APP.route('//pdf/') def pdf(name): - url = os.path.join(APP.config["APPLICATION_ROOT"], f'/{ name }/', 'pagedjs.html') + url = os.path.join(APP.config["APPLICATION_ROOT"], name, 'pagedjs.html') return render_template('pdf.html', url=url, name=name.strip(), application_root=APP.config["APPLICATION_ROOT"]) # //////////////////