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
87d43575
Commit
87d43575
authored
Jul 15, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加Relation中代表是否已审核的标志位
parent
27bb1528
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Relation.py
DAPlatform/dao/Relation.py
+4
-3
slice.py
DAPlatform/views/slice.py
+4
-1
No files found.
DAPlatform/dao/Relation.py
View file @
87d43575
...
...
@@ -22,6 +22,7 @@ class Relation(Model):
data_id
=
IntegerField
(
null
=
False
)
result_id
=
CharField
()
flag
=
BooleanField
(
default
=
False
)
# 代表该标注关系是否被标注
flag2
=
BooleanField
(
default
=
False
)
# 代表该标注关系是否被审核
score
=
IntegerField
(
default
=
0
)
receive_time
=
DateTimeField
(
default
=
datetime
.
datetime
.
now
())
complete_time
=
DateTimeField
(
null
=
True
)
...
...
@@ -142,7 +143,7 @@ def get_executors(data_id):
if
__name__
==
'__main__'
:
#
Relation.drop_table()
#
Relation.create_table()
print
(
get_state
(
1
,
5
))
Relation
.
drop_table
()
Relation
.
create_table
()
#
print(get_state(1, 5))
# create_relation(3, 1, 2)
DAPlatform/views/slice.py
View file @
87d43575
...
...
@@ -11,7 +11,10 @@ slice = Blueprint("slice", __name__, url_prefix="/api/slice")
def
get_pieces
():
taskId
=
request
.
args
[
'taskId'
]
userId
=
request
.
args
.
get
(
'userId'
)
if
userId
:
isCheck
=
request
.
args
.
get
(
'isCheck'
)
if
isCheck
:
ret
=
Slice
.
find_slice_by_check
(
taskId
)
elif
userId
:
ret
=
Slice
.
find_slice_by_task_user
(
taskId
,
userId
)
else
:
ret
=
Slice
.
find_slice_by_task
(
taskId
)
...
...
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