Пример #1
0
def email_reports():
    """
    6th business day of the month @ 3pm
    """
    for contact in get_district_people():
        if contact.email:
            email_report.delay(contact.supply_point.code, [contact.email])
    for report in AdHocReport.objects.all():
        report.send()
Пример #2
0
def email_reports():    
    """
    6th business day of the month @ 3pm
    """
    for contact in get_district_people():
        if contact.email:
            email_report.delay(contact.supply_point.code, [contact.email])
    for report in AdHocReport.objects.all():
        report.send()
                
Пример #3
0
 def send(self):
     email_report.delay(self.supply_point.code, self.get_recipients())
Пример #4
0
 def send(self):
     email_report.delay(self.supply_point.code, self.get_recipients())