mirror of
https://github.com/shawnkim1997/All-in-one-Financial-Analysis.git
synced 2026-08-15 19:38:07 +00:00
16 lines
361 B
Python
16 lines
361 B
Python
"""Server-side feature flags for staged refactors."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
|
|
def _enabled(name: str) -> bool:
|
|
return (os.getenv(name) or "").strip().lower() in {"1", "true", "yes", "on"}
|
|
|
|
|
|
def new_data_gateway_enabled() -> bool:
|
|
"""Gate router migrations onto the v2 Data Gateway."""
|
|
|
|
return _enabled("ATLAS_FLAG_GATEWAY")
|