config: fix ruff formatting
Some checks failed
CI / Security Scan (push) Successful in 31s
CI / Lint & Format (push) Failing after 36s
CI / Unit Tests (push) Has been skipped
CI / Security Tests (push) Has been skipped
CI / Advanced Security Tests (push) Has been skipped
CI / Memory Leak Check (push) Has been skipped
CI / Fuzz Testing (push) Has been skipped
CI / SBOM Generation (push) Has been skipped
CI / Build & Push Image (push) Has been skipped
CI / Harbor Vulnerability Scan (push) Has been skipped

This commit is contained in:
Username
2026-02-23 21:38:44 +01:00
parent fdf8364e80
commit 253fb2ad38

View File

@@ -98,9 +98,7 @@ class Config:
# so all gunicorn workers use the same HMAC key.
_db_default = Path(__file__).parent.parent / "data" / "pastes.db"
_data_dir = Path(os.environ.get("FLASKPASTE_DB", _db_default)).parent
POW_SECRET = (
os.environ.get("FLASKPASTE_POW_SECRET", "") or _get_pow_secret(_data_dir)
)
POW_SECRET = os.environ.get("FLASKPASTE_POW_SECRET", "") or _get_pow_secret(_data_dir)
# Registration PoW difficulty (higher than paste creation for security)
REGISTER_POW_DIFFICULTY = int(os.environ.get("FLASKPASTE_REGISTER_POW", "24"))