update 新增标签

This commit is contained in:
P3ngSaM 2022-07-22 13:48:45 +08:00
parent 55788e975c
commit 1189ae95e4
1 changed files with 13 additions and 1 deletions

View File

@ -126,7 +126,19 @@ class TagsImpl(object):
def new_tags(**kwargs):
"""新增标签"""
filed = kwargs['tag_name']
category = kwargs['tag_category']
if kwargs['tag_category'] == 'func':
category = '函数'
elif kwargs['tag_category'] == 'api':
category = '接口'
elif kwargs['tag_category'] == 'model':
category = '模型'
elif kwargs['tag_category'] == 'question':
category = '问题'
elif kwargs['tag_category'] == 'questionnaire':
category = '问卷'
else:
return '标签类别错误'
case = DB_TEST.find_single_column(
"模型数据",