示例#1
0
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'))
示例#2
0
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')