Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
文档服务地址:
http://47.92.0.57:3000/
周报索引地址:
http://47.92.0.57:3000/s/NruNXRYmV
Open sidebar
Berlin
DA-Platform
Commits
b0653528
Commit
b0653528
authored
Jul 23, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改发布任务时有默认文件但无法显示的bug
parent
b3016504
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
Data.py
DAPlatform/dao/Data.py
+4
-3
Task.py
DAPlatform/dao/Task.py
+4
-4
task.py
DAPlatform/views/task.py
+0
-1
No files found.
DAPlatform/dao/Data.py
View file @
b0653528
...
...
@@ -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
DAPlatform/dao/Task.py
View file @
b0653528
...
...
@@ -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])
DAPlatform/views/task.py
View file @
b0653528
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment