fix: code review #2 — _cfg.DELAY + VERSION в config/loader + мёртвые импорты
This commit is contained in:
@@ -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", ""),
|
||||
|
||||
Reference in New Issue
Block a user