up to 50 the number of podcats in feeds
authorFrédéric Péters <fpeters@0d.be>
Tue, 17 Mar 2020 19:22:26 +0000 (20:22 +0100)
committerFrédéric Péters <fpeters@0d.be>
Tue, 17 Mar 2020 19:22:26 +0000 (20:22 +0100)
panikweb/views.py

index 6e5209b..8bb25f3 100644 (file)
@@ -744,7 +744,7 @@ class PodcastsFeed(Feed):
 
     def items(self):
         return SoundFile.objects.select_related().filter(
-                podcastable=True).order_by('-creation_timestamp')[:20]
+                podcastable=True).order_by('-creation_timestamp')[:50]
 
     def item_title(self, item):
         if item.fragment:
@@ -835,7 +835,7 @@ class EmissionPodcastsFeed(PodcastsFeed):
     def items(self):
         return SoundFile.objects.select_related().filter(
                 podcastable=True,
-                episode__emission__slug=self.emission.slug).order_by('-creation_timestamp')[:20]
+                episode__emission__slug=self.emission.slug).order_by('-creation_timestamp')[:50]
 
 emission_podcasts_feed = EmissionPodcastsFeed()