change duration of pinned events to 1 day

This commit is contained in:
2024-09-06 16:21:27 +02:00
parent 13d7969532
commit a7d951dbab

View File

@@ -96,8 +96,8 @@ class ArticleManager(PublishedManager, models.Manager):
post_date = post_date.replace(year=__year, month=__month)
# Get date for event posts that is max 7 days old.
event_date = datetime.date.today() - datetime.timedelta(7)
# Get date for event posts that is max 1 day old.
event_date = datetime.date.today() - datetime.timedelta(1)
return (
self.published(public)