from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Category, Item, User
engine = create_engine('sqlite:///catalog.db')
Base.metadata.bind = engine
DBSession = sessionmaker(bind=engine)
session = DBSession()


def getCategories():
    """
    Loads category names
    """
    cat = session.query(Category).all()
    return [i.name for i in cat]

3f7b7bfcd683cb7007c82d56117c21bbb2b44578
<mask token>

<mask token>


def getCategories():
    """
    Loads category names
    """
    cat = session.query(Category).all()
    return [i.name for i in cat]

<mask token>
engine = create_engine('sqlite:///catalog.db')
Base.metadata.bind = engine
DBSession = sessionmaker(bind=engine)
session = DBSession()


def getCategories():
    """
    Loads category names
    """
    cat = session.query(Category).all()
    return [i.name for i in cat]

from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Category, Item, User
engine = create_engine('sqlite:///catalog.db')
Base.metadata.bind = engine
DBSession = sessionmaker(bind=engine)
session = DBSession()


def getCategories():
    """
    Loads category names
    """
    cat = session.query(Category).all()
    return [i.name for i in cat]
