Skip to content

Commit

Permalink
✨ CHANGE use configurable of press throught days - make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
stefrado committed Jan 7, 2025
1 parent 6cd4456 commit 74a80c2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def create_and_send_mail(
)

send_mail(
"30 dagen tot een product in SDG automatisch zal worden gepubliceerd.",
f"{settings.SDG_PRESS_THROUGH_DAYS} dagen tot een product in SDG automatisch zal worden gepubliceerd.",
strip_tags(html_message),
settings.DEFAULT_FROM_EMAIL,
[user.email],
Expand All @@ -91,7 +91,8 @@ def handle(self, *args, **options):
for product in Product.objects.filter(
referentie_product__isnull=False,
automatisch_doordrukken=True,
automatisch_doordrukken_datum=date.today() + timedelta(days=30),
automatisch_doordrukken_datum=date.today()
+ timedelta(days=settings.SDG_PRESS_THROUGH_DAYS),
):
catalogus: ProductenCatalogus = product.catalogus
lokale_overheid: LokaleOverheid = catalogus.lokale_overheid
Expand Down

0 comments on commit 74a80c2

Please sign in to comment.