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
def current_user_(): if 'user' in session: id = session['user'] g.current_user = current_user(id) else: g.current_user = None