文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 4b6e24f3 by 李景熙

返回文件标注者信息同时返回审核状态

parent 59561b16
......@@ -133,7 +133,7 @@ def get_state(user_id, data_id):
# 获取某文件的标注者信息
def get_executors(data_id):
try:
find = Relation.select(Relation.user_id).where(Relation.data_id == data_id)
find = Relation.select(Relation.user_id, Relation.flag2).where(Relation.data_id == data_id)
index = 0
list = []
while index < len(find):
......@@ -141,7 +141,8 @@ def get_executors(data_id):
list.append(
{
'id': find[index].user_id,
'nickname': name
'nickname': name,
'state': int(find[index].flag2)
}
)
index += 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment