def send_schedule_change(email, session_name, link):
 message_settings = MessageSettings.query.filter_by(action=SESSION_SCHEDULE).first()
 if ((not message_settings) or (message_settings.mail_status == 1)):
  send_email(to=email, action=SESSION_SCHEDULE, subject=MAILS[SESSION_SCHEDULE]['subject'].format(session_name=session_name), html=MAILS[SESSION_SCHEDULE]['message'].format(email=str(email), session_name=str(session_name), link=link))

def send_schedule_change ( email , session_name , link ) : message_settings = MessageSettings . query . filter_by ( action = SESSION_SCHEDULE ) . first ( ) if ( ( not message_settings ) or ( message_settings . mail_status == 1 ) ) : send_email ( to = email , action = SESSION_SCHEDULE , subject = MAILS [ SESSION_SCHEDULE ] [ 'subject' ] . format ( session_name = session_name ) , html = MAILS [ SESSION_SCHEDULE ] [ 'message' ] . format ( email = str ( email ) , session_name = str ( session_name ) , link = link ) )
send schedule change in session .