X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=blobdiff_plain;f=m_librarian%2Fweb%2Fapp.py;h=9991bb714f6fc9ea0653152f60a71929c4b2c0cd;hp=d0110207a1fad5cf7ef31220acef2fae4875885e;hb=8fdf6aab492482fcacad9ce2ec764bdc5bf76590;hpb=bcc4982ab73b34aaf94e5ac0cd895e0df822fc56 diff --git a/m_librarian/web/app.py b/m_librarian/web/app.py index d011020..9991bb7 100644 --- a/m_librarian/web/app.py +++ b/m_librarian/web/app.py @@ -70,7 +70,7 @@ def search_authors_post(): @route('/books-by-author//', method='GET') @cheetah_view('books_by_author.tmpl') def books_by_author(id): - use_filters = get_config().getint('filters', 'use_in_books_list') + use_filters = get_config().getint('filters', 'use_in_books_list', 1) if use_filters: join_expressions = [] join_expressions.append(Book.j.authors) @@ -106,7 +106,7 @@ def send_static(filename): @cheetah_view('download.tmpl') def download_books(): books_ids = request.forms.getall('books') - download_path = get_config().get('download', 'path') + download_path = get_config().get('download', 'path') or '.' if books_ids: for id in books_ids: book = Book.get(int(id))