diff --git a/the_works/views/home.py b/the_works/views/home.py index 13365e4..32811a5 100644 --- a/the_works/views/home.py +++ b/the_works/views/home.py @@ -1,6 +1,5 @@ from flask import Blueprint, render_template, request, jsonify from sqlalchemy import select -from sqlalchemy.sql.sqltypes import TEXT from the_works.database import db import the_works.models import inspect @@ -32,7 +31,7 @@ def search_all(): # loop over database tables for table in tables: - text_columns = [column.key for column in table.__table__.columns if type(column.type) == TEXT] + text_columns = [column.key for column in table.__table__.columns if type(column.type) == db.types.TEXT] hits = [] # loop over table rows for row in db.session.execute(select(table)):