Esempio n. 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()
Esempio n. 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()
                
Esempio n. 3
0
 def send(self):
     email_report.delay(self.supply_point.code, self.get_recipients())
Esempio n. 4
0
 def send(self):
     email_report.delay(self.supply_point.code, self.get_recipients())