From 740407e860384695bb492659b16a0e4fd7a9a7ec Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 28 Nov 2017 11:29:22 +0100 Subject: [PATCH 1/1] move fragment to book detail --- src/api/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/handlers.py b/src/api/handlers.py index 04c56f8f1..b8eec2f4b 100644 --- a/src/api/handlers.py +++ b/src/api/handlers.py @@ -156,7 +156,7 @@ class BookDetailHandler(BaseHandler, BookDetails): """ allowed_methods = ['GET'] fields = ['title', 'parent', 'children'] + Book.formats + [ - 'media', 'url', 'cover', 'cover_thumb'] + [ + 'media', 'url', 'cover', 'cover_thumb', 'fragment_data'] + [ category_plural[c] for c in book_tag_categories] @piwik_track @@ -279,7 +279,7 @@ class EBooksHandler(AnonymousBooksHandler): class FilterBooksHandler(AnonymousBooksHandler): fields = book_tag_categories + [ - 'href', 'title', 'url', 'cover', 'cover_thumb', 'slug', 'cover_source_image', 'fragment_data'] + 'href', 'title', 'url', 'cover', 'cover_thumb', 'slug', 'cover_source_image'] def read(self, request, title_part=None, author_part=None, is_lektura=None, is_audiobook=None, after=None, before=None, count=None): -- 2.20.1