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
c0ba0d17
Commit
c0ba0d17
authored
Sep 08, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已完成任务页面后端进行任务状态的返回
parent
81734aa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Task.py
DAPlatform/dao/Task.py
+6
-1
No files found.
DAPlatform/dao/Task.py
View file @
c0ba0d17
...
@@ -151,13 +151,18 @@ def find_task_completed(executor, start, num):
...
@@ -151,13 +151,18 @@ def find_task_completed(executor, start, num):
while
index
+
start
<
len
(
find
)
and
index
<
num
:
while
index
+
start
<
len
(
find
)
and
index
<
num
:
user
=
User
.
get_username
(
find
[
index
+
start
]
.
publish_id
)
user
=
User
.
get_username
(
find
[
index
+
start
]
.
publish_id
)
if
judge_completed
(
find
[
index
+
start
]
.
task_id
,
executor
):
if
judge_completed
(
find
[
index
+
start
]
.
task_id
,
executor
):
if
find
[
index
+
start
]
.
task_state
==
4
:
state
=
"已完成"
else
:
state
=
"待审核"
list
.
append
(
list
.
append
(
{
{
'id'
:
find
[
index
+
start
]
.
task_id
,
'id'
:
find
[
index
+
start
]
.
task_id
,
'creator'
:
user
,
'creator'
:
user
,
'creator_id'
:
find
[
index
+
start
]
.
publish_id
,
'creator_id'
:
find
[
index
+
start
]
.
publish_id
,
'name'
:
find
[
index
+
start
]
.
task_name
,
'name'
:
find
[
index
+
start
]
.
task_name
,
'date'
:
find
[
index
+
start
]
.
publish_time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
)
'date'
:
find
[
index
+
start
]
.
publish_time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
),
'state'
:
state
}
}
)
)
index
+=
1
index
+=
1
...
...
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