catalogApp.py
def createUser(login_session):
    '''
    Creates a new user from login_session credentials.
    '''
    newUser = User(name=login_session['username'], email=login_session[
                   'email'], img_url=login_session['picture'])
    session.add(newUser)
    session.commit()
    user = session.query(User).filter_by(email=login_session['email']).one()
    return user.id

    Creates a new user from login_session credentials.
    
Creates a new user from login_session credentials.
Creates a new user from login_session credentials .
def createUser(login_session):
    newUser = User(name=login_session['username'], email=login_session[
                   'email'], img_url=login_session['picture'])
    session.add(newUser)
    session.commit()
    user = session.query(User).filter_by(email=login_session['email']).one()
    return user.id
def createUser ( login_session ) : newUser = User ( name = login_session [ 'username' ] , email = login_session [ 'email' ] , img_url = login_session [ 'picture' ] ) session . add ( newUser ) session . commit ( ) user = session . query ( User ) . filter_by ( email = login_session [ 'email' ] ) . one ( ) return user . id
Creates a new user from login_session credentials.
Creates a new user from login_session credentials .
'''
    Creates a new user from login_session credentials.
    '''
login_session