diff --git a/app/models/packages.py b/app/models/packages.py index d5218bf8..add14665 100644 --- a/app/models/packages.py +++ b/app/models/packages.py @@ -22,7 +22,7 @@ import os import typing from flask import url_for from flask_babel import lazy_gettext, get_locale, gettext -from flask_sqlalchemy import BaseQuery +from flask_sqlalchemy.query import Query from sqlalchemy import or_, func from sqlalchemy.dialects.postgresql import insert from sqlalchemy_searchable import SearchQueryMixin @@ -33,7 +33,7 @@ from . import db from .users import Permission, UserRank, User -class PackageQuery(BaseQuery, SearchQueryMixin): +class PackageQuery(Query, SearchQueryMixin): pass diff --git a/requirements.lock.txt b/requirements.lock.txt index 7664384b..abd6ac2f 100644 --- a/requirements.lock.txt +++ b/requirements.lock.txt @@ -1,4 +1,4 @@ -alembic==1.10.3 +alembic==1.13.1 amqp==5.1.1 async-timeout==4.0.2 Babel==2.15.0 @@ -25,8 +25,8 @@ flask-babel==4.0.0 Flask-FlatPages==0.8.2 Flask-Login==0.6.3 Flask-Mail==0.10.0 -Flask-Migrate==4.0.4 -Flask-SQLAlchemy==3.0.3 +Flask-Migrate==4.0.7 +Flask-SQLAlchemy==3.1.1 Flask-WTF==1.2.1 git-archive-all==1.23.1 gitdb==4.0.10 @@ -49,7 +49,7 @@ passlib==1.7.4 Pillow==10.0.1 pluggy==1.0.0 prompt-toolkit==3.0.38 -psycopg2==2.9.6 +psycopg2==2.9.9 Pygments==2.15.1 pytest==7.3.1 pytest-cov==4.0.0 @@ -60,11 +60,11 @@ requests==2.31.0 six==1.16.0 smmap==5.0.0 soupsieve==2.4.1 -SQLAlchemy==2.0.9 -SQLAlchemy-Searchable==1.4.1 -SQLAlchemy-Utils==0.41.0 +SQLAlchemy==2.0.30 +SQLAlchemy-Searchable==2.1.0 +SQLAlchemy-Utils==0.41.2 tomli==2.0.1 -typing_extensions==4.5.0 +typing_extensions==4.11.0 ua-parser==0.16.1 urllib3==1.26.18 user-agents==2.2.0 @@ -73,6 +73,6 @@ vine==5.0.0 wcwidth==0.2.6 webencodings==0.5.1 Werkzeug==3.0.3 -WTForms==3.0.1 -WTForms-SQLAlchemy==0.3 +WTForms==3.1.2 +WTForms-SQLAlchemy==0.4.1 sentry-sdk[flask]==2.0.1