I am creating a website using Flask and SQLAlchemy. This website keeps track of classes that a student has taken. I would like to find a way to search my database using SQLAlc
query = session.query(Class.title.distinct().label("title")) titles = [row.title for row in query.all()]