catalogApp.py
def showItems(category_id):
    '''
    Shows all the items that belong to category matching category_id.
    '''
    categoryToShow = session.query(Category).filter_by(
        id=category_id).one()
    categoryItems = session.query(Item).filter_by(
        category_id=category_id).order_by(asc(Item.name))
    return render_template('showitems.html',
                           category=categoryToShow,
                           items=categoryItems,
                           login_session=login_session)

    Shows all the items that belong to category matching category_id.
    
Shows all the items that belong to category matching category_id.
Shows all the items that belong to category matching category_id .
def showItems(category_id):
    categoryToShow = session.query(Category).filter_by(
        id=category_id).one()
    categoryItems = session.query(Item).filter_by(
        category_id=category_id).order_by(asc(Item.name))
    return render_template('showitems.html',
                           category=categoryToShow,
                           items=categoryItems,
                           login_session=login_session)
def showItems ( category_id ) : categoryToShow = session . query ( Category ) . filter_by ( id = category_id ) . one ( ) categoryItems = session . query ( Item ) . filter_by ( category_id = category_id ) . order_by ( asc ( Item . name ) ) return render_template ( 'showitems.html' , category = categoryToShow , items = categoryItems , login_session = login_session )
Shows all the items that belong to category matching category_id.
Shows all the items that belong to category matching category_id .
'''
    Shows all the items that belong to category matching category_id.
    '''
category_id