diff --git a/site/config/loader.py b/site/config/loader.py index 94ae7e6..89096c2 100644 --- a/site/config/loader.py +++ b/site/config/loader.py @@ -80,7 +80,7 @@ SERVICES = _DF["SERVICES"] OPS_INDEX = _DF["OPS_INDEX"] DELAY = float(os.getenv("MOCK_OP_DELAY", "0.1")) -VERSION = "0.5.2" +VERSION = "0.5.3" def get_services(stand_id): diff --git a/site/routes/root.py b/site/routes/root.py index caaa03b..f265e9d 100644 --- a/site/routes/root.py +++ b/site/routes/root.py @@ -46,7 +46,7 @@ def index(): текущую задержку операций, список сервисов с операциями. Использует Jinja2-шаблон templates/index.html и внешний CSS из static/style.css. """ - svc_count = len(_cfg.SERVICES) + svc_count = len(SERVICES) inst_count = len(state.instances) # Список стендов @@ -61,7 +61,7 @@ def index(): # Список сервисов для таблицы: name, id, кол-во операций svc_list = [] - for sid, svc in sorted(_cfg.SERVICES.items(), key=lambda x: x[1].get("name", x[0])): + for sid, svc in sorted(SERVICES.items(), key=lambda x: x[1].get("name", x[0])): svc_list.append({ "id": sid, "name": svc.get("name", sid),