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

Commit 3e001082 by 李景熙

根据数据单创建任务

parent 9b535aef
......@@ -63,11 +63,13 @@ def set_complete(_id):
# 根据数据单id创建任务
# 需要模板id
def createtask(id):
try:
result = collection.find_one({'_id': ObjectId(id)})
Task.create_task(result['user_id'], str(result['_id']))
for i in result['data_list']:
# 每一个i对应两个分片,一个文本分片,一个图像分片
print(i['id'])
return True
except Exception as e:
......
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