update deps and fix inactive newsletters being listed
This commit is contained in:
parent
be9a4d64ae
commit
c8de9671d7
3 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM python:3.9
|
||||
FROM python:3.12
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
RUN mkdir /app /app/static
|
||||
WORKDIR /app
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue