mirror of
https://github.com/element-hq/synapse
synced 2024-10-02 12:42:41 +00:00
Remove unused 'DataStore.get_users' method
This commit is contained in:
parent
78a3111c41
commit
fcf058f564
1 changed files with 0 additions and 20 deletions
|
@ -173,26 +173,6 @@ class DataStore(
|
||||||
# TODO: shouldn't this be moved to `DeviceWorkerStore`?
|
# TODO: shouldn't this be moved to `DeviceWorkerStore`?
|
||||||
return self._device_list_id_gen.get_current_token()
|
return self._device_list_id_gen.get_current_token()
|
||||||
|
|
||||||
async def get_users(self) -> List[JsonDict]:
|
|
||||||
"""Function to retrieve a list of users in users table.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
A list of dictionaries representing users.
|
|
||||||
"""
|
|
||||||
return await self.db_pool.simple_select_list(
|
|
||||||
table="users",
|
|
||||||
keyvalues={},
|
|
||||||
retcols=[
|
|
||||||
"name",
|
|
||||||
"password_hash",
|
|
||||||
"is_guest",
|
|
||||||
"admin",
|
|
||||||
"user_type",
|
|
||||||
"deactivated",
|
|
||||||
],
|
|
||||||
desc="get_users",
|
|
||||||
)
|
|
||||||
|
|
||||||
async def get_users_paginate(
|
async def get_users_paginate(
|
||||||
self,
|
self,
|
||||||
start: int,
|
start: int,
|
||||||
|
|
Loading…
Reference in a new issue