def send_export_mail(event_id, result):
 job = DataGetter.get_export_jobs(event_id)
 if (not job):
  return
 event = EventModel.query.get(event_id)
 if (not event):
  event_name = '(Undefined)'
 else:
  event_name = event.name
 send_email_after_export(job.user_email, event_name, result)
 user = DataGetter.get_user_by_email(job.user_email)
 send_notif_after_export(user, event_name, result)

def send_export_mail ( event_id , result ) : job = DataGetter . get_export_jobs ( event_id ) if ( not job ) : return event = EventModel . query . get ( event_id ) if ( not event ) : event_name = '(Undefined)' else : event_name = event . name send_email_after_export ( job . user_email , event_name , result ) user = DataGetter . get_user_by_email ( job . user_email ) send_notif_after_export ( user , event_name , result )
send export event mail after the process is complete .