fix: code review #2 — _cfg.DELAY + VERSION в config/loader + мёртвые импорты

This commit is contained in:
2026-07-31 22:32:00 +04:00
parent 9647afcfa2
commit 94d35f3914
8 changed files with 48 additions and 27 deletions
+2 -3
View File
@@ -11,8 +11,7 @@ Blueprint "mock" с префиксом /api/v1/svc/_mock.
from flask import Blueprint, jsonify
import mock_state
from config.loader import SERVICES, DELAY as _DELAY
import config.loader as _cfg # для модификации модульной переменной DELAY
import config.loader as _cfg # для чтения/записи модульных переменных DELAY, SERVICES
bp = Blueprint("mock", __name__, url_prefix="/api/v1/svc/_mock")
@@ -73,7 +72,7 @@ def mock_services():
не дёргая реальный /api/v1/svc/services.
"""
result = {}
for svc_id, svc_def in SERVICES.items():
for svc_id, svc_def in _cfg.SERVICES.items():
result[str(svc_id)] = {
"name": svc_def.get("name", ""),
"displayName": svc_def.get("service_display_name", ""),