diff options
| author | Frederick Muriuki Muriithi | 2025-12-15 12:22:25 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-12-15 12:22:25 -0600 |
| commit | 1f2c00e2657f1b7edcfcc9f9bd1a573625d7fb29 (patch) | |
| tree | f16234f5fa09ffffc94628ac2b31da51b0e7a71b /gn_auth/auth/authorisation/users/views.py | |
| parent | 6fd20bd7973f73db1f9fbd1e35dae503ebb3bce9 (diff) | |
| download | gn-auth-1f2c00e2657f1b7edcfcc9f9bd1a573625d7fb29.tar.gz | |
Diffstat (limited to 'gn_auth/auth/authorisation/users/views.py')
| -rw-r--r-- | gn_auth/auth/authorisation/users/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py index cae2605..c248ac3 100644 --- a/gn_auth/auth/authorisation/users/views.py +++ b/gn_auth/auth/authorisation/users/views.py @@ -4,9 +4,9 @@ import sqlite3 import secrets import traceback from dataclasses import asdict -from typing import Any, Sequence from urllib.parse import urljoin from functools import reduce, partial +from typing import Any, Union, Sequence from datetime import datetime, timedelta from email.headerregistry import Address from email_validator import validate_email, EmailNotValidError @@ -80,7 +80,7 @@ def user_details() -> Response: }) @users.route("/<user_id>", methods=["GET"]) -def get_user(user_id: str) -> Response: +def get_user(user_id: str) -> Union[Response, tuple[Response, int]]: """Fetch user details by user_id.""" try: with db.connection(current_app.config["AUTH_DB"]) as conn: |
