update deps and fix inactive newsletters being listed

This commit is contained in:
Hugh Rundle 2025-04-26 17:32:35 +10:00
commit c8de9671d7
Signed by: hugh
GPG key ID: A7E35779918253F9
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
FROM python:3.9
FROM python:3.12
ENV PYTHONUNBUFFERED 1
RUN mkdir /app /app/static
WORKDIR /app

View file

@ -133,13 +133,13 @@ class Groups(View):
class Newsletters(View):
"""browse the list of groups"""
"""browse the list of newsletters"""
def get(self, request, category=None):
"""here they are"""
if category:
news = models.Newsletter.objects.filter(
approved=True, category=category
approved=True, active=True, category=category
).order_by("name")
else:
news = models.Newsletter.objects.filter(approved=True).order_by("name")

View file

@ -1,7 +1,7 @@
beautifulsoup4==4.12.2
gunicorn==22.0.0
Django==4.2.14
environs==9.5.0
environs==14.1.1
feedparser==6.0.10
psycopg2==2.9.5
requests==2.32.3