small refactor

This commit is contained in:
tpv committed 2026-06-24 19:46:56 -07:00
1 parent 0b9df71be9
commit 13c54f033c
3 files changed
+11 -17

No files matched your search

+3 -3
View File
@@ -13,7 +13,7 @@ from monitor_utils.constants import (
BUCKET_WEBHOOK_MAP,
LOGGING_LEVEL,
)
from monitor_utils.config import get_config, is_production
from monitor_utils.config import get_config, is_production, DevelopmentMode
from monitor_utils.models import (
Product,
ProductMetadata,
@@ -28,9 +28,9 @@ LOGGER = logging.getLogger(__name__)
def setup_config(
monitor_name: str, override_production=False
monitor_name: str, development_mode: DevelopmentMode
) -> tuple[list[str], dict, AsyncIOMotorCollection]:
use_production = is_production(override_production)
use_production = is_production(development_mode)
config, _ = get_config(
monitor_name=monitor_name,
use_production_path=use_production,