Skip to content

Commit 126b12a

Browse files
authored
Update README.md
1 parent d05cbe2 commit 126b12a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ Enter a username: admin
2929
Enter a password:
3030
Token retrieved successfully
3131
Save to a config file? (Y/n)
32-
>>> details_of_users, number_of_users = user.lists()
32+
>>> details_of_users = user.lists()
3333
>>> print(details_of_users)
3434
[{'name': '@admin:example.com', 'user_type': None, 'is_guest': 0, 'admin': 1, 'deactivated': 0, 'shadow_banned': False, 'displayname': 'Admin', 'avatar_url': 'mxc://example.com/ABCDEFG'}]
35-
>>> print(number_of_users)
35+
>>> print(details_of_users.total)
3636
1
3737
```
3838
### As arguments
3939
```python
4040
>>> from synapse_admin import User
4141
>>> user = User("example.com", 443, "<access token>", "https://")
42-
>>> details_of_users, number_of_users = user.lists()
42+
>>> details_of_users = user.lists()
4343
>>> print(details_of_users)
4444
[{'name': '@admin:example.com', 'user_type': None, 'is_guest': 0, 'admin': 1, 'deactivated': 0, 'shadow_banned': False, 'displayname': 'Admin', 'avatar_url': 'mxc://example.com/ABCDEFG'}]
45-
>>> print(number_of_users)
45+
>>> print(details_of_users.total)
4646
1
4747
```
4848
## Documentation

0 commit comments

Comments
 (0)