From 37ea051e8f1c9d4a580d6583ce0063ba003f59ef Mon Sep 17 00:00:00 2001 From: j Date: Sun, 30 Mar 2025 17:08:44 +0100 Subject: [PATCH] wait for all items in week --- app/listmonk/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/listmonk/tasks.py b/app/listmonk/tasks.py index 342ac47..c3d279a 100644 --- a/app/listmonk/tasks.py +++ b/app/listmonk/tasks.py @@ -29,7 +29,7 @@ def send_week(): message = "no title for week, can not send out email please add: %s/admin/item/week/add/?monday=%s" % (settings.URL, monday) r = rpc.send(message, group=settings.SIGNAL_MODERATORS_GROUP) cache.set(notified_key, True, 24*60*60) - elif week.filter(announced=None).exists(): + elif week_obj.items().filter(announced=None).exists(): logger.error("waiting for last item of the week to be public") elif not week_obj.published: week_obj.published = now