def add_interviewer(): form = request.form print('form is', form) name = form.get('interviewer_name', -1) print('name is', name) Interviewer.new(name=name) return redirect(url_for('.admin'))
def initialize4test(): """ Drop database and add candidates & interviewers for test purpose """ client = MongoClient() client.drop_database('calender') Candidate.new(name='C1') Interviewer.new(name='I1') Interviewer.new(name='I2') Interviewer.new(name='I3')