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)
Beispiel #2
0
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.')
Beispiel #3
0
def results():
    participants = Participant.select()
    return render_template('results.html', participants=participants)
Beispiel #4
0
def index():
    participants = Participant.select()
    return render_template('index.html', participants=participants)