aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authentication/users.py
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-03-13 13:33:18 +0300
committerMunyoki Kilyungi2024-03-13 15:34:57 +0300
commitef6c708c5684a6ec0047e3e9725d1b2273551f9c (patch)
tree9c463409c8501ced5eefec07d79537600646890d /gn_auth/auth/authentication/users.py
parentbdbadc86218622e56a192eccf3a83542804d7f8d (diff)
downloadgn-auth-ef6c708c5684a6ec0047e3e9725d1b2273551f9c.tar.gz
Rename users -> fetch_users.
Use verbs for methods. * gn_auth/auth/authentication/oauth2/models/oauth2client.py (OAuth2Client): (oauth2_clients): Rename users -> fetch_users. * gn_auth/auth/authentication/users.py (users): Ditto. (fetch_users): Ditto. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn_auth/auth/authentication/users.py')
-rw-r--r--gn_auth/auth/authentication/users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authentication/users.py b/gn_auth/auth/authentication/users.py
index 2f8caa1..7a41a14 100644
--- a/gn_auth/auth/authentication/users.py
+++ b/gn_auth/auth/authentication/users.py
@@ -107,7 +107,7 @@ def set_user_password(
{"user_id": str(user.user_id), "hash": hashed_password})
return user, hashed_password
-def users(conn: db.DbConnection,
+def fetch_users(conn: db.DbConnection,
ids: tuple[UUID, ...] = tuple()) -> tuple[User, ...]:
"""
Fetch all users with the given `ids`. If `ids` is empty, return ALL users.