aboutsummaryrefslogtreecommitdiff
path: root/roka.py
diff options
context:
space:
mode:
authorDylan Garrett <dylan.garrett@gmail.com>2021-06-13 14:21:07 -0700
committerDylan Garrett <dylan.garrett@gmail.com>2021-06-13 14:21:07 -0700
commitd6ca0e96012f93a14428cdbe43408110639e4ef7 (patch)
tree717888ba7dd2ebc1e8642ba76a2a235abfda5154 /roka.py
parent9ee86c545e14ade1fd14b7068bdda6cf5a7c47a9 (diff)
parent4cd0884b307e28bd9f2e531c41fb7b41600b02a4 (diff)
downloadroka-d6ca0e96012f93a14428cdbe43408110639e4ef7.tar.gz
roka-d6ca0e96012f93a14428cdbe43408110639e4ef7.zip
Merge remote-tracking branch 'origin/master' into static-generation
Diffstat (limited to 'roka.py')
-rwxr-xr-xroka.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/roka.py b/roka.py
index b7fc849..5729454 100755
--- a/roka.py
+++ b/roka.py
@@ -51,7 +51,8 @@ def list_books():
form = {'WWW-Authenticate': 'Basic realm="o/"'}
return Response('unauthorized', 401, form)
- return render_template('index.html', books=books)
+ return render_template('index.html', books=books,
+ show_path=app.config.get('SHOW_PATH', True))
def generate(static_path, base_url, audiobook_dirs):
static_index_path = os.path.join(static_path, 'index.html')