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