Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. @app.route('/applicants-phone', methods=['GET'])
  2. def applicants_phone():
  3.     return render_template('applicants_phone.html')
  4.  
  5. @app.route('/applicants-phone', methods=['POST'])
  6. def post_applicants_phone():
  7.     applicant_name = request.form['applicant-name']
  8.     applicants = data_manager.get_applicant_data_by_name(applicant_name)
  9.  
  10.     return render_template('applicants_phone.html', applicants=applicants)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement