imaging_api.db.get_direct_archive_sessions_by_project
Functions
Get all direct archive sessions for a given project. |
Module Contents
- async imaging_api.db.get_direct_archive_sessions_by_project.get_direct_archive_sessions_by_project(project_id: str, session: sqlalchemy.ext.asyncio.AsyncSession) list[imaging_api.db.models.DirectArchiveSession]
Get all direct archive sessions for a given project. This function queries the database for all direct archive sessions associated with the specified project ID.
- Parameters:
project_id (str) – The ID of the project for which to retrieve direct archive sessions.
session (AsyncSession) – The SQLAlchemy async session to use for the database query.
- Returns:
A list of DirectArchiveSession objects representing the sessions found for the project.
- Return type:
list[DirectArchiveSession]
- Raises:
HTTPException – If project_id is empty.