def autor(): all_participants = Participant.select(Participant.registrationId, Participant.name, Participant.workplace) for p in all_participants: AutorDW.get_or_create(idautor=p.registrationId, autorname=p.name, workplace=p.workplace)
def email_exists(form, field): email = field.data.lower() if Participant.select().where(Participant.Email == email).exists(): raise ValidationError( 'Participant with that email already exists, check the name you have entered matches ' 'previously, or contact [email protected] for help.')
def results(): participants = Participant.select() return render_template('results.html', participants=participants)
def index(): participants = Participant.select() return render_template('index.html', participants=participants)