diff --git a/README.md b/README.md index da563ef..b8b3bc5 100644 --- a/README.md +++ b/README.md @@ -110,4 +110,4 @@ docker compose exec postgres pg_dump -U miem miem_workers > backup.sql docker compose down ``` -Версия сервиса: `0.2.3`. Админка всегда показывает версии backend и frontend в footer. +Версия сервиса: `0.2.4`. Админка всегда показывает версии backend и frontend в footer. diff --git a/app/services/admin_data.py b/app/services/admin_data.py index 64f747b..762533c 100644 --- a/app/services/admin_data.py +++ b/app/services/admin_data.py @@ -59,7 +59,7 @@ def employee_detail_payload(employee: Employee) -> dict[str, Any]: "emails": _clean_list(contacts.get("emails")), "phones": _clean_list(contacts.get("phones")), "address": contacts.get("address"), - "items": _normalize_contact_items(contacts.get("items")), + "contact_items": _normalize_contact_items(contacts.get("items")), }, "external_ids": _normalize_external_ids(data.get("external_ids")), "sections": [_normalize_section(section) for section in _as_list(data.get("sections"))], diff --git a/app/templates/employee_detail.html b/app/templates/employee_detail.html index 7eeae72..f00f289 100644 --- a/app/templates/employee_detail.html +++ b/app/templates/employee_detail.html @@ -62,12 +62,12 @@