Skip to content

Commit

Permalink
send an email to author when refect after deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Jan 30, 2025
1 parent f3ed41a commit d1fb8e2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from lemarche.tenders import constants as tender_constants
from lemarche.tenders.models import Tender
from lemarche.www.tenders.tasks import send_tender_author_reject_message


class Command(BaseCommand):
Expand Down Expand Up @@ -33,6 +34,7 @@ def handle(self, *args, **options):

for tender in tenders_to_update:
tender.set_rejected()
send_tender_author_reject_message(tender=tender)

if not tenders_to_update:
self.stdout.write("Aucun besoin rejeté")
Expand Down

0 comments on commit d1fb8e2

Please sign in to comment.