summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-05-05 08:57:51 -0500
committerluxagraf <sng@luxagraf.net>2024-05-05 08:57:51 -0500
commit606008374546f346862b62ac0376e6a41dbab0a4 (patch)
treed263bbaa6e6ee8c8f8c1aab48c2e09dca6f565bf
parent05c42b1590201fb10836753e6dfb79e1c929a717 (diff)
jrnl: fixed a bug in JRNL feed
-rw-r--r--app/builder/base.py2
-rw-r--r--app/posts/views/jrnl_views.py2
2 files changed, 1 insertions, 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):
"""