Пример #1
0
def finish():

    subid = session.get('subid')

    # If the user has finished, clear session
    if subid is not None:
        clear_session()
        return render_template('routes/finish.html')
    return redirect('/')
Пример #2
0
def finish():

    subid = session.get('subid')

    # If the user has finished, clear session
    if subid is not None:

        # Filesystem will rename folder to _finished
        # Relational removes token so not accessible
        app.finish_user(subid)
        clear_session()
        return render_template('routes/finish.html')
    return redirect('/')
Пример #3
0
def finish():

    subid = session.get('subid')

    # If the user has finished, clear session
    if subid is not None:

        # Filesystem will rename folder to _finished
        # Relational removes token so not accessible
        app.finish_user(subid)
        clear_session()
        return render_template('routes/finish.html')
    return redirect('/')
Пример #4
0
def logout():

    # If the user has finished, clear session
    clear_session()
    return redirect('/')
Пример #5
0
def logout():

    # If the user has finished, clear session
    clear_session()
    return redirect('/')