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
fdc41285
Commit
fdc41285
authored
Aug 16, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
fa6fd659
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Relation.py
DAPlatform/dao/Relation.py
+4
-3
No files found.
DAPlatform/dao/Relation.py
View file @
fdc41285
...
...
@@ -42,9 +42,9 @@ def create_relation(slice_id, user_id, data_id):
# 设置标注关系的打分数值
def
set_grade
(
user_id
,
slice
_id
,
score
):
def
set_grade
(
user_id
,
data
_id
,
score
):
try
:
relation
=
Relation
.
get
(
Relation
.
user_id
==
user_id
,
Relation
.
slice_id
==
slice
_id
)
relation
=
Relation
.
get
(
Relation
.
user_id
==
user_id
,
Relation
.
data_id
==
data
_id
)
relation
.
score
=
score
relation
.
flag2
=
True
relation
.
save
()
...
...
@@ -196,7 +196,8 @@ def get_executors(data_id):
{
'id'
:
find
[
index
]
.
user_id
,
'relation_id'
:
find
[
index
]
.
relation_id
,
'nickname'
:
name
'nickname'
:
name
,
'state'
:
find
[
index
]
.
flag2
,
}
)
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