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

Commit b0653528 by 李景熙

修改发布任务时有默认文件但无法显示的bug

parent b3016504
......@@ -24,7 +24,7 @@ class Data(Model):
slice_id = IntegerField(null=False)
name = CharField(null=False, max_length=30)
size = IntegerField(null=False)
url = CharField(null=False, unique=True)
url = CharField(null=False)
class Meta:
database = mysql
......@@ -142,4 +142,5 @@ def delete_data_by_slice(slice_id):
if __name__ == '__main__':
Data.drop_table()
Data.create_table()
\ No newline at end of file
Data.create_table()
# create_data(1, '默认文件','默认路径' , 2333)
\ No newline at end of file
......@@ -255,7 +255,7 @@ def set_state(task_id, state):
if __name__ == '__main__':
# print(find_task_my_task(1,1,1))
# Task.drop_table()
# Task.create_table()
find = Task.select(Task.task_id, Task.task_name, Task.publish_id, Task.publish_time)
print(find[0+20])
Task.drop_table()
Task.create_table()
# find = Task.select(Task.task_id, Task.task_name, Task.publish_id, Task.publish_time)
# print(find[0+20])
......@@ -57,7 +57,6 @@ def create_task():
ret = Task.create_task(data['userId'], data['taskName'])
tid = ret.data
i = 0
print(data)
while i < len(data['task']['domains']):
s = Slice.create_text_slice(tid, data['task']['domains'][i]['templateId'])
j = 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