mirror of
https://codeberg.org/diginaut/digimarks.git
synced 2026-02-04 07:00:26 +01:00
Typing fixes
This commit is contained in:
@@ -36,8 +36,8 @@ class Settings(BaseSettings):
|
||||
# inside the codebase
|
||||
# static_dir: DirectoryPath = Path('digimarks/static')
|
||||
# template_dir: DirectoryPath = Path('digimarks/templates')
|
||||
static_dir: DirectoryPath = 'digimarks/static'
|
||||
template_dir: DirectoryPath = 'digimarks/templates'
|
||||
static_dir: DirectoryPath = DirectoryPath('digimarks/static')
|
||||
template_dir: DirectoryPath = DirectoryPath('digimarks/templates')
|
||||
|
||||
media_url: str = '/static/'
|
||||
|
||||
@@ -127,7 +127,7 @@ def index(request: Request):
|
||||
|
||||
|
||||
@app.get('/api/v1/admin/{system_key}/users/{user_id}', response_model=User)
|
||||
async def get_user(session: SessionDep, system_key: str, user_id: int) -> type[User]:
|
||||
async def get_user(session: SessionDep, system_key: str, user_id: int) -> User:
|
||||
"""Show user information."""
|
||||
logger.info('User %d requested', user_id)
|
||||
if system_key != settings.system_key:
|
||||
|
||||
Reference in New Issue
Block a user