Skip to content

Commit d7a8243

Browse files
committed
fix(search): Исправление отображения ФИО в поиске
1 parent eace940 commit d7a8243

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tgbot/dialogs/getters/common/search.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
format_fullname,
2020
get_role,
2121
get_status_emoji,
22+
short_name,
2223
strftime_date,
2324
)
2425

@@ -77,7 +78,7 @@ async def search_specialists_getter(
7778
role_info = get_role(specialist.role)
7879
formatted_specialists.append((
7980
specialist.id,
80-
format_fullname(specialist, True, True),
81+
short_name(specialist.fullname),
8182
role_info["emoji"],
8283
))
8384

@@ -127,7 +128,7 @@ async def search_heads_getter(
127128
role_info = get_role(head.role)
128129
formatted_heads.append((
129130
head.id,
130-
format_fullname(head, True, True),
131+
short_name(head.fullname),
131132
role_info["emoji"],
132133
))
133134

0 commit comments

Comments
 (0)