重构基本完成
This commit is contained in:
@ -17,6 +17,16 @@ def get_label_list(project_id: int, session: Session):
|
||||
return label_list
|
||||
|
||||
|
||||
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()
|
||||
for label in label_list:
|
||||
id_list.append(label.id)
|
||||
name_list.append(label.label_name)
|
||||
return id_list, name_list
|
||||
|
||||
|
||||
def add_label(label: plModel, session: Session):
|
||||
"""
|
||||
新增标签
|
||||
|
Reference in New Issue
Block a user