删除注册任务
(db: Session, task_uuid: str)
| 383 | |
| 384 | |
| 385 | def delete_registration_task(db: Session, task_uuid: str) -> bool: |
| 386 | """删除注册任务""" |
| 387 | db_task = get_registration_task_by_uuid(db, task_uuid) |
| 388 | if not db_task: |
| 389 | return False |
| 390 | |
| 391 | db.delete(db_task) |
| 392 | db.commit() |
| 393 | return True |
| 394 | |
| 395 | |
| 396 | # 为 API 路由添加别名 |
nothing calls this directly
no test coverage detected