Switch to normalized names

This commit is contained in:
Firepup Sixfifty 2024-06-05 12:50:37 -05:00
parent edfe7cd5d5
commit b2a4e34148
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -48,11 +48,11 @@ except ImportError:
userMappings = {} userMappings = {}
for user in users_list: for user in users_list:
userMappings[f"<@{user['id']}>"] = ( userMappings[f"<@{user['id']}>"] = (
f"<@{user['profile']['display_name']}>" f"<@{user['profile']['display_name_normalized']}>"
if user["profile"]["display_name"] if user["profile"]["display_name_normalized"]
else ( else (
f"<@{user['profile']['real_name']}>" f"<@{user['profile']['real_name_normalized']}>"
if user["profile"]["real_name"] if user["profile"]["real_name_normalized"]
else f"<@{user['id']}>" else f"<@{user['id']}>"
) )
) )