From 606008374546f346862b62ac0376e6a41dbab0a4 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 5 May 2024 08:57:51 -0500 Subject: jrnl: fixed a bug in JRNL feed --- app/builder/base.py | 2 -- app/posts/views/jrnl_views.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/builder/base.py b/app/builder/base.py index 532deea..6122cc9 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -125,7 +125,6 @@ class BuildNew(): response = self.client.get('%s.txt' % url) self.write_file(path, response.content, ext='txt', filename=slug) - def build_feed(self, url_name): """ Not called, but available for subclassing @@ -387,7 +386,6 @@ class BuildSitemap(Build): response = c.get('/sitemap.xml', HTTP_HOST='127.0.0.1') self.write_file('', response.content, 'xml', 'sitemap') - class BuildWritingFeed(Build): def build(self): qs = apps.get_model('blog', 'entry').objects.filter(status__exact=1).order_by('-pub_date')[:20] diff --git a/app/posts/views/jrnl_views.py b/app/posts/views/jrnl_views.py index 8652e1d..d84e1c2 100644 --- a/app/posts/views/jrnl_views.py +++ b/app/posts/views/jrnl_views.py @@ -147,7 +147,7 @@ class JrnlRSSFeedView(Feed): description_template = 'feeds/blog_description.html' def items(self): - return Post.objects.filter(status__exact=1).filter(post_type__in=[PostType.JRNL,PostType.FILM]).order_by('-pub_date')[:10] + return Post.objects.filter(status__exact=1).filter(post_type==PostType.JRNL).order_by('-pub_date')[:10] def item_pubdate(self, item): """ -- cgit v1.2.3-70-g09d2