def current_user_():
    if 'user' in session:
        id = session['user']

        print(current_user(id))
        g.current_user = current_user(id)
        print(g.current_user)
    else:
        g.current_user = None
Example #2
0
def current_user_():
    if 'user' in session:
        id = session['user']

        g.current_user = current_user(id)

    else:
        g.current_user = None