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

Commit fd32d4e5 by 李景熙

修改文件状态返回

parent fa7c7d33
...@@ -175,10 +175,12 @@ def set_flag(id): ...@@ -175,10 +175,12 @@ def set_flag(id):
def get_state(user_id, data_id): def get_state(user_id, data_id):
try: try:
r = Relation.get(Relation.user_id == user_id, Relation.data_id == data_id) r = Relation.get(Relation.user_id == user_id, Relation.data_id == data_id)
if r.complete_time:
return 1
except: except:
return 0 return 0
else: else:
return r.flag return 0
# 获取某文件的标注者信息 # 获取某文件的标注者信息
......
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