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

Commit fdc41285 by 李景熙

修复bug

parent fa6fd659
......@@ -42,9 +42,9 @@ def create_relation(slice_id, user_id, data_id):
# 设置标注关系的打分数值
def set_grade(user_id, slice_id, score):
def set_grade(user_id, data_id, score):
try:
relation = Relation.get(Relation.user_id == user_id, Relation.slice_id == slice_id)
relation = Relation.get(Relation.user_id == user_id, Relation.data_id == data_id)
relation.score = score
relation.flag2 = True
relation.save()
......@@ -196,7 +196,8 @@ def get_executors(data_id):
{
'id': find[index].user_id,
'relation_id': find[index].relation_id,
'nickname': name
'nickname': name,
'state': 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