新增部分接口
This commit is contained in:
@ -51,6 +51,18 @@ def get_detect_pager(detect_pager: ProjectDetectPager, session: Session):
|
||||
return pager
|
||||
|
||||
|
||||
def get_detect_list(project_id: int, session: Session):
|
||||
"""
|
||||
根据项目id查询所有集合的列表
|
||||
:param project_id:
|
||||
:param session:
|
||||
:return:
|
||||
"""
|
||||
query = session.query(ProjectDetect).filter_by(project_id=project_id).order_by(asc(ProjectDetect.id))
|
||||
result = jsonable_encoder(query.all())
|
||||
return result
|
||||
|
||||
|
||||
def update_detect_status(detect_id: int, detect_status: int, session: Session):
|
||||
"""
|
||||
更新项目训练状态,如果是已完成的话,train_version自动+1
|
||||
|
Reference in New Issue
Block a user