wait for all items in week

This commit is contained in:
j 2025-03-30 17:08:44 +01:00
commit 37ea051e8f

View file

@ -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