def get_employee_emails(company, only_working=True):
 employee_list = frappe.get_all(u'Employee', fields=[u'name', u'user_id'], filters={u'status': u'Active', u'company': company})
 out = []
 for e in employee_list:
  if e.user_id:
   if (only_working and is_holiday(e.name)):
    continue
   out.append(e.user_id)
 return out

def get_employee_emails ( company , only_working = True ) : employee_list = frappe . get_all ( u'Employee' , fields = [ u'name' , u'user_id' ] , filters = { u'status' : u'Active' , u'company' : company } ) out = [ ] for e in employee_list : if e . user_id : if ( only_working and is_holiday ( e . name ) ) : continue out . append ( e . user_id ) return out
returns list of employee user ids for the given company who are working today .