增加删除推理集合接口
This commit is contained in:
@ -190,6 +190,17 @@ def get_log_list(detect_id: int, session: Session):
|
||||
return result
|
||||
|
||||
|
||||
def get_logs(detect_id: int, session: Session):
|
||||
"""
|
||||
获取推理记录
|
||||
:param detect_id:
|
||||
:param session:
|
||||
:return:
|
||||
"""
|
||||
query = session.query(ProjectDetectLog).filter_by(detect_id=detect_id).order_by(asc(ProjectDetectLog.id))
|
||||
return query.all()
|
||||
|
||||
|
||||
def get_log_pager(detect_log_pager: ProjectDetectLogPager, session: Session):
|
||||
"""
|
||||
获取分页数据
|
||||
|
Reference in New Issue
Block a user