Switch to normalized names
This commit is contained in:
parent
edfe7cd5d5
commit
b2a4e34148
1 changed files with 4 additions and 4 deletions
8
main.py
8
main.py
|
@ -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']}>"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue