完善相关问题,并增加推理的部分代码
This commit is contained in:
@ -20,7 +20,7 @@ def get_label_list(project_id: int, session: Session):
|
||||
def get_label_for_train(project_id: int, session: Session):
|
||||
id_list = []
|
||||
name_list = []
|
||||
label_list = session.query(plModel).filter(plModel.project_id == project_id).all()
|
||||
label_list = session.query(plModel).filter(plModel.project_id == project_id).order_by(plModel.id).all()
|
||||
for label in label_list:
|
||||
id_list.append(label.id)
|
||||
name_list.append(label.label_name)
|
||||
|
Reference in New Issue
Block a user