fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c185de4
)
move fragment to book detail
author
Jan Szejko
<janek37@gmail.com>
Tue, 28 Nov 2017 10:29:22 +0000
(11:29 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 28 Nov 2017 10:29:22 +0000
(11:29 +0100)
src/api/handlers.py
patch
|
blob
|
history
diff --git
a/src/api/handlers.py
b/src/api/handlers.py
index
04c56f8
..
b8eec2f
100644
(file)
--- 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 + [
"""
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
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 + [
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):
def read(self, request, title_part=None, author_part=None, is_lektura=None, is_audiobook=None,
after=None, before=None, count=None):