diff --git a/frontend/copr-frontend.spec b/frontend/copr-frontend.spec index f06affe3e..113053027 100644 --- a/frontend/copr-frontend.spec +++ b/frontend/copr-frontend.spec @@ -108,7 +108,6 @@ BuildRequires: python3dist(redis) BuildRequires: python3dist(requests) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinxcontrib-httpdomain) -BuildRequires: python3dist(sqlalchemy-utils) BuildRequires: python3dist(whoosh) BuildRequires: python3dist(wtforms) >= 2.2.1 BuildRequires: python3dist(python-ldap) @@ -165,7 +164,6 @@ Requires: python3dist(pylibravatar) Requires: python3dist(pytz) Requires: python3dist(redis) Requires: python3dist(requests) -Requires: python3dist(sqlalchemy-utils) Requires: python3dist(templated-dictionary) Requires: python3dist(wtforms) >= 2.2.1 Requires: python3dist(pyzmq) diff --git a/frontend/coprs_frontend/coprs/logic/batches_logic.py b/frontend/coprs_frontend/coprs/logic/batches_logic.py index a23ae2fde..b9a09757b 100644 --- a/frontend/coprs_frontend/coprs/logic/batches_logic.py +++ b/frontend/coprs_frontend/coprs/logic/batches_logic.py @@ -8,7 +8,6 @@ from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.sql import text -from sqlalchemy_utils.functions import quote as sa_quote from coprs import app, db, cache from coprs.helpers import WorkList from coprs.models import Batch, Build @@ -31,7 +30,7 @@ def _lock_table(table): # (commit / rollback) with db.engine.connect() as connection: connection.execute(text("LOCK TABLE {} IN EXCLUSIVE MODE;".format( - sa_quote(db.engine, table) + db.engine.identifier_preparer.quote(table) )))