'Send summary of all replies. Called at midnight'

def send_summary(self):

    args = self.get_message_details()
    frappe.sendmail(recipients=get_employee_emails(self.company, False), template=u'daily_work_summary', args=args, subject=_(u'Daily    Work    Summary    for    {0}').format(self.company), reference_doctype=self.doctype, reference_name=self.name)
    self.db_set(u'status', u'Sent')
