From cb5a042faf51e00bba842230c43af007eb079a4b Mon Sep 17 00:00:00 2001 From: Adimanv Date: Fri, 27 Sep 2024 10:08:59 +0530 Subject: [PATCH] minor update --- database-cleanup/database_cleanup/app.py | 3 ++- forecast-inference/forecast_inference/app.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/database-cleanup/database_cleanup/app.py b/database-cleanup/database_cleanup/app.py index f0b8767..b072a7f 100644 --- a/database-cleanup/database_cleanup/app.py +++ b/database-cleanup/database_cleanup/app.py @@ -12,7 +12,6 @@ import uuid import sentry_sdk import pkg_resources -my_version = pkg_resources.get_distribution('database-cleanup').version import click import sqlalchemy as sa @@ -21,6 +20,8 @@ _log = logging.getLogger(__name__) +my_version = pkg_resources.get_distribution('database-cleanup').version + sentry_sdk.init( dsn=os.getenv("SENTRY_DSN"), environment=os.getenv("ENVIRONMENT", "local"), diff --git a/forecast-inference/forecast_inference/app.py b/forecast-inference/forecast_inference/app.py index f5f4998..36e2ad4 100644 --- a/forecast-inference/forecast_inference/app.py +++ b/forecast-inference/forecast_inference/app.py @@ -9,7 +9,6 @@ from uuid import UUID import sentry_sdk import pkg_resources -my_version = pkg_resources.get_distribution('forecast_inference').version import click import dotenv @@ -26,6 +25,8 @@ _log = logging.getLogger(__name__) +my_version = pkg_resources.get_distribution('forecast_inference').version + sentry_sdk.init( dsn=os.getenv("SENTRY_DSN"), environment=os.getenv("ENVIRONMENT", "local"),