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

Commit 5733ee0b by 李景熙

add new files

parent 1ed14dd3
# 设置标注关系的打分数值
def set_grade(user_id, data_id, score):
try:
relation = Relation.get(Relation.user_id == user_id, Relation.data_id == data_id)
relation.score = score
relation.save()
except:
return Result(0, "grade failed", {})
else:
return Result(1, "grade success", {})
\ No newline at end of file
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