summaryrefslogtreecommitdiff
path: root/app/posts/build.py
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2025-05-31 11:37:22 -0500
committerlxf <sng@luxagraf.net>2025-05-31 11:37:22 -0500
commite2b3a335e3984931f1343cb6be8db53a8a1304ab (patch)
tree4c31dcb9e55487858dbb939f3fc53afd153eeb5c /app/posts/build.py
parente0bd735f74c327f1c6f0abccc431b35a270fb8eb (diff)
condensed everything into jrnl. need to clean up
Diffstat (limited to 'app/posts/build.py')
-rw-r--r--app/posts/build.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/posts/build.py b/app/posts/build.py
index ba0fe27..5c8b8f2 100644
--- a/app/posts/build.py
+++ b/app/posts/build.py
@@ -4,6 +4,7 @@ from django.apps import apps
from builder.base import BuildNew
from itertools import chain
+from django.db.models import Q
from django.conf import settings
from .models import PostType, PostTopic
@@ -55,7 +56,7 @@ class BuildJrnl(BuildNew):
Write jrnl to disk
'''
def get_model_queryset(self):
- return self.model.objects.filter(post_type=PostType.JRNL).filter(status__exact=1).order_by('-pub_date')
+ return self.model.objects.filter(Q(post_type=PostType.JRNL)|Q(post_type=PostType.ESSAY)).filter(status__exact=1).order_by('-pub_date')
def build(self):
self.build_list_view(
@@ -65,6 +66,7 @@ class BuildJrnl(BuildNew):
self.build_year_view("jrnl:list_year")
self.build_month_view("jrnl:list_month")
self.build_detail_view()
+ self.build_detail_view()
self.build_location_view()
self.build_latest()