(
project_id: str,
base_id: UUID,
)
| 122 | |
| 123 | |
| 124 | async def _fetch_deployment( |
| 125 | project_id: str, |
| 126 | base_id: UUID, |
| 127 | ) -> Optional[DeploymentDB]: |
| 128 | variant_base = None |
| 129 | |
| 130 | with suppress(): |
| 131 | variant_base = await fetch_base_by_id( |
| 132 | # project_id=project_id, |
| 133 | base_id=base_id.hex, |
| 134 | ) |
| 135 | |
| 136 | if not variant_base: |
| 137 | return None |
| 138 | |
| 139 | deployment = None |
| 140 | |
| 141 | with suppress(): |
| 142 | deployment = await get_deployment_by_id( |
| 143 | # project_id=project_id, |
| 144 | deployment_id=variant_base.deployment_id.hex, |
| 145 | ) |
| 146 | |
| 147 | if not deployment: |
| 148 | return None |
| 149 | |
| 150 | return deployment |
| 151 | |
| 152 | |
| 153 | async def _fetch_variant( |
no test coverage detected