fasjson: fix typo, we need to access .result to have the dict
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
3cd2bf8929
commit
a83685e80a
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ def gen_all_aliases():
|
||||||
temp.write(line)
|
temp.write(line)
|
||||||
for user in users:
|
for user in users:
|
||||||
username = user['username']
|
username = user['username']
|
||||||
userinfo = client.get_user(username=username)
|
userinfo = client.get_user(username=username).result
|
||||||
email = userinfo['emails'][0]
|
email = userinfo['emails'][0]
|
||||||
|
|
||||||
temp.write(f'{username}: {email} \n')
|
temp.write(f'{username}: {email} \n')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue