X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0e793d09e4c0427fbac5e5471a35628261dd43c0..b84f858fe939d95e2ef19a025444c42da730e6ef:/apps/api/handlers.py?ds=inline diff --git a/apps/api/handlers.py b/apps/api/handlers.py index 832f34f0b..9bb65d00e 100644 --- a/apps/api/handlers.py +++ b/apps/api/handlers.py @@ -67,7 +67,7 @@ class CatalogueHandler(BaseHandler): elif field in ('mp3', 'ogg', 'daisy'): media = [] for m in book.media.filter(type=field): - files.append({ + media.append({ 'url': m.file.get_absolute_url(), 'size': m.file.size, })