X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/709f6968bdd9cc4ed73f64efb50d2b0e97e2dfc5..cb5f5e940b246fe7ae76206bf2aa27c78a82a1aa:/apps/catalogue/feeds.py?ds=inline diff --git a/apps/catalogue/feeds.py b/apps/catalogue/feeds.py index 356bb0262..c79e05809 100644 --- a/apps/catalogue/feeds.py +++ b/apps/catalogue/feeds.py @@ -42,8 +42,8 @@ class AudiobookFeed(Feed): if type == 'all': objects = objects.filter(type__in=('mp3', 'ogg', 'daisy')) else: - objects = objects.filter(type=type) - return objects[:20] + objects = objects.filter(type=type)[:20] + return objects def item_title(self, item): return item.name