fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
media upload fix
[wolnelektury.git]
/
apps
/
api
/
handlers.py
diff --git
a/apps/api/handlers.py
b/apps/api/handlers.py
index
76de8c6
..
832f34f
100644
(file)
--- a/
apps/api/handlers.py
+++ b/
apps/api/handlers.py
@@
-66,7
+66,7
@@
class CatalogueHandler(BaseHandler):
elif field in ('mp3', 'ogg', 'daisy'):
media = []
- for m in book.media
s.filter(type=''
):
+ for m in book.media
.filter(type=field
):
files.append({
'url': m.file.get_absolute_url(),
'size': m.file.size,