def send_summary():
 for d in frappe.get_all(u'Daily Work Summary', dict(status=u'Open')):
  daily_work_summary = frappe.get_doc(u'Daily Work Summary', d.name)
  daily_work_summary.send_summary()

def send_summary ( ) : for d in frappe . get_all ( u'Daily Work Summary' , dict ( status = u'Open' ) ) : daily_work_summary = frappe . get_doc ( u'Daily Work Summary' , d . name ) daily_work_summary . send_summary ( )
send summary to everyone .