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

Commit 87d43575 by 李景熙

添加Relation中代表是否已审核的标志位

parent 27bb1528
......@@ -22,6 +22,7 @@ class Relation(Model):
data_id = IntegerField(null=False)
result_id = CharField()
flag = BooleanField(default=False) # 代表该标注关系是否被标注
flag2 = BooleanField(default=False) # 代表该标注关系是否被审核
score = IntegerField(default=0)
receive_time = DateTimeField(default=datetime.datetime.now())
complete_time = DateTimeField(null=True)
......@@ -142,7 +143,7 @@ def get_executors(data_id):
if __name__ == '__main__':
# Relation.drop_table()
# Relation.create_table()
print(get_state(1, 5))
Relation.drop_table()
Relation.create_table()
# print(get_state(1, 5))
# create_relation(3, 1, 2)
......@@ -11,7 +11,10 @@ slice = Blueprint("slice", __name__, url_prefix="/api/slice")
def get_pieces():
taskId = request.args['taskId']
userId = request.args.get('userId')
if userId:
isCheck = request.args.get('isCheck')
if isCheck:
ret = Slice.find_slice_by_check(taskId)
elif userId:
ret = Slice.find_slice_by_task_user(taskId, userId)
else:
ret = Slice.find_slice_by_task(taskId)
......
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