From 5fa6f46acc7286845756d94f1e3d54637b4e1da4 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 28 Sep 2023 13:15:46 +0200 Subject: [PATCH] clean example app.py --- examples/app.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/examples/app.py b/examples/app.py index 8f4a0bbe..29edbc14 100644 --- a/examples/app.py +++ b/examples/app.py @@ -11,7 +11,6 @@ from ereuse_devicehub.config import DevicehubConfig from ereuse_devicehub.devicehub import Devicehub from ereuse_devicehub.inventory.views import devices from ereuse_devicehub.labels.views import labels -from ereuse_devicehub.mail.flask_mail import Mail from ereuse_devicehub.views import core from ereuse_devicehub.workbench.views import workbench from ereuse_devicehub.modules.did.views import did @@ -25,23 +24,6 @@ from ereuse_devicehub.modules.oidc.oauth2 import config_oauth # from werkzeug.middleware.profiler import ProfilerMiddleware -SENTRY_DSN = config('SENTRY_DSN', None) -if SENTRY_DSN: - import sentry_sdk - from sentry_sdk.integrations.flask import FlaskIntegration - - sentry_sdk.init( - dsn=SENTRY_DSN, - integrations=[ - FlaskIntegration(), - ], - # Set traces_sample_rate to 1.0 to capture 100% - # of transactions for performance monitoring. - # We recommend adjusting this value in production. - traces_sample_rate=1.0, - ) - - app = Devicehub(inventory=DevicehubConfig.DB_SCHEMA) app.register_blueprint(core) app.register_blueprint(devices) @@ -52,8 +34,6 @@ app.register_blueprint(did) app.register_blueprint(dpp) app.register_blueprint(oidc) -mail = Mail(app) -app.mail = mail config_oauth(app)