From ea22c18ced270d2dce51f7f597b6b91fd0cb240d Mon Sep 17 00:00:00 2001 From: Sachin Bisht Date: Tue, 9 Jan 2024 23:13:32 +0530 Subject: [PATCH] upgraded flask package and dependencies --- api/models/user.py | 2 +- api/models/user_program.py | 2 +- config.py | 1 - requirements-dev.txt | 2 +- requirements.txt | 20 +++++++++++--------- 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/api/models/user.py b/api/models/user.py index 835d99b..df98c21 100644 --- a/api/models/user.py +++ b/api/models/user.py @@ -1,6 +1,6 @@ from api.mixins import TimestampMixin from api import db -from flask_sqlalchemy import BaseQuery +from flask_sqlalchemy.query import Query as BaseQuery class UserQuery(BaseQuery): diff --git a/api/models/user_program.py b/api/models/user_program.py index 2632d31..ca83077 100644 --- a/api/models/user_program.py +++ b/api/models/user_program.py @@ -1,7 +1,7 @@ from api.mixins import TimestampMixin from api import db from api import app, models, helpers -from flask_sqlalchemy import BaseQuery +from flask_sqlalchemy.query import Query as BaseQuery from api.helpers.common_helper import current_ist_time diff --git a/config.py b/config.py index d07abdb..ec9dfa7 100644 --- a/config.py +++ b/config.py @@ -34,7 +34,6 @@ % POSTGRES ) -SQLALCHEMY_TRACK_MODIFICATIONS = True WTF_CSRF_ENABLED = True SECRET_KEY = os.environ.get("SECRET_KEY") diff --git a/requirements-dev.txt b/requirements-dev.txt index 89e6b9f..2219eaf 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ # Includes dev dependencies on top of requirements.txt -r requirements.txt -functions-framework==2.1.2 +functions-framework==3.5.0 pre-commit==2.11.0 diff --git a/requirements.txt b/requirements.txt index 46e0a2e..4bebc26 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,18 +1,20 @@ certifi==2020.12.5 chardet==4.0.0 -click==7.1.2 -Flask==1.1.2 +click==8.1.3 +Flask==3.0.0 requests==2.25.1 python-dotenv==0.15.0 -Flask-SQLAlchemy==2.1 +Flask-SQLAlchemy==3.1.1 +greenlet==3.0.3 idna==2.10 -itsdangerous==1.1.0 -Jinja2==2.11.3 -MarkupSafe==1.1.1 -psycopg2==2.8.6 +itsdangerous==2.1.2 +Jinja2==3.1.2 +MarkupSafe==2.1.1 +psycopg2==2.9.9 python-dotenv==0.15.0 requests==2.25.1 -SQLAlchemy==1.3.23 +SQLAlchemy==2.0.23 urllib3==1.26.3 -Werkzeug==1.0.1 +Werkzeug==3.0.0 +watchdog==3.0.0 google-cloud-logging==3.5.0