Browse Source

typo in path.join

pull/30/head
manetta 2 years ago
parent
commit
b384354e95
  1. 4
      octomode.py

4
octomode.py

@ -130,12 +130,12 @@ def stylesheet(name):
@APP.route('/<name>/html/') @APP.route('/<name>/html/')
def html(name): 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"]) return render_template('iframe.html', url=url, name=name.strip(), application_root=APP.config["APPLICATION_ROOT"])
@APP.route('/<name>/pdf/') @APP.route('/<name>/pdf/')
def pdf(name): 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"]) return render_template('pdf.html', url=url, name=name.strip(), application_root=APP.config["APPLICATION_ROOT"])
# ////////////////// # //////////////////

Loading…
Cancel
Save