Lint black

This commit is contained in:
Zeecka
2025-12-31 20:49:24 +01:00
parent 7e1290c5d9
commit ad9501a3b2
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -136,7 +136,9 @@ def init_db(app: Flask) -> None:
db.session.commit() # pylint: disable=no-member
rmtree(Path("./results"), ignore_errors=True) # Clear results folder
if not db.engine.dialect.has_table(db.engine.connect(), "image"): # If not configured
if not db.engine.dialect.has_table(
db.engine.connect(), "image"
): # If not configured
db.create_all()
print("Database structure created successfully.")
if getenv("SKIP_IHDR_FILL", "0") == "1":
+4 -1
View File
@@ -14,9 +14,12 @@ from sentry_sdk.integrations.threading import ThreadingIntegration
SENTRY_DSN = os.environ.get("SENTRY_DSN")
SENTRY_ENVIRONMENT = os.environ.get("SENTRY_ENVIRONMENT", "development")
SENTRY_TRACES_SAMPLE_RATE = float(os.environ.get("SENTRY_TRACES_SAMPLE_RATE", "0.1"))
SENTRY_PROFILES_SAMPLE_RATE = float(os.environ.get("SENTRY_PROFILES_SAMPLE_RATE", "0.1"))
SENTRY_PROFILES_SAMPLE_RATE = float(
os.environ.get("SENTRY_PROFILES_SAMPLE_RATE", "0.1")
)
SENTRY_RELEASE = os.environ.get("SENTRY_RELEASE", "1.0.0")
def initialize_sentry() -> None:
"""Initialize Sentry SDK once, safely."""