From 6c4a847f047c2b6e1291cab63f01503b3b5da131 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 15 Nov 2020 13:40:42 -0500 Subject: fixed a bug in building the location based archives --- app/posts/build.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app') diff --git a/app/posts/build.py b/app/posts/build.py index 8c8fee0..e6370b9 100644 --- a/app/posts/build.py +++ b/app/posts/build.py @@ -85,11 +85,13 @@ class BuildJrnl(BuildNew): try: qs = self.model.objects.filter( status__exact=1, + post_type=PostType.JRNL, location__state__country=c ) except: qs = self.model.objects.filter( status__exact=1, + post_type=PostType.JRNL, location__state__country__lux_region=c.id ) print(c) -- cgit v1.2.3-70-g09d2