コード例 #1
0
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)
コード例 #2
0
ファイル: forms.py プロジェクト: George9Waller/Aldrich75
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.')
コード例 #3
0
ファイル: app.py プロジェクト: ZoogerZager/PolyNanna
def results():
    participants = Participant.select()
    return render_template('results.html', participants=participants)
コード例 #4
0
ファイル: app.py プロジェクト: ZoogerZager/PolyNanna
def index():
    participants = Participant.select()
    return render_template('index.html', participants=participants)