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
85055338
Commit
85055338
authored
Jul 14, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复审核任务的分片列表中进度未显示bug
parent
383e13e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
Relation.py
DAPlatform/dao/Relation.py
+9
-0
Slice.py
DAPlatform/dao/Slice.py
+3
-1
No files found.
DAPlatform/dao/Relation.py
View file @
85055338
...
...
@@ -90,6 +90,15 @@ def get_flag_count(userId, sliceId):
return
num
def
get_flag_count2
(
sliceId
):
try
:
num
=
Relation
.
select
()
.
where
(
Relation
.
slice_id
==
sliceId
,
Relation
.
flag
==
1
)
.
count
()
except
:
return
0
else
:
return
num
def
set_flag
(
id
):
try
:
relation
=
Relation
.
get
(
Relation
.
relation_id
==
id
)
...
...
DAPlatform/dao/Slice.py
View file @
85055338
...
...
@@ -82,6 +82,7 @@ def find_slice_by_task(task_id):
index
=
0
list
=
[]
while
index
<
len
(
find
):
num
=
Relation
.
get_flag_count2
(
find
[
index
]
.
slice_id
)
if
find
[
index
]
.
type
==
'0'
:
t
=
"文本"
template
=
find
[
index
]
.
model_id
...
...
@@ -96,7 +97,8 @@ def find_slice_by_task(task_id):
'id'
:
find
[
index
]
.
slice_id
,
'fileNum'
:
find
[
index
]
.
document_number
,
'type'
:
t
,
'template'
:
template
'template'
:
template
,
'completedNum'
:
num
}
)
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