示例#1
0
文件: main.py 项目: leeper/expfactory
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
文件: main.py 项目: leeper/expfactory
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('/')