flip_api.utils.project_manager ============================== .. py:module:: flip_api.utils.project_manager Functions --------- .. autoapisummary:: flip_api.utils.project_manager.get_project_by_id flip_api.utils.project_manager.has_project_status Module Contents --------------- .. py:function:: get_project_by_id(project_id: uuid.UUID, db: sqlmodel.Session) -> flip_api.db.models.main_models.Projects | None Get project by ID from database, ignoring soft-deleted ones. :param project_id: The ID of the project to retrieve. :type project_id: UUID :param db: The SQLModel session to use for database operations. :type db: Session :returns: The project object if found, otherwise None. :rtype: Projects | None .. py:function:: has_project_status(project_id: uuid.UUID, status: flip_api.domain.schemas.status.ProjectStatus, db: sqlmodel.Session) -> bool Check if a project has the specified status :param project_id: The ID of the project to check :type project_id: UUID :param status: The status to check against the project :type status: ProjectStatus :param db: The database session to use for the query :type db: Session :returns: True if the project has the specified status, False otherwise :rtype: bool