Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
Project
Project
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
Open sidebar
谢林臻
sun
Commits
71d5578f
Commit
71d5578f
authored
Oct 30, 2019
by
钟尚武
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'shangwu/feature-laboratory' into 'test'
fix params See merge request
alpha/sun!390
parents
aba3517a
26f04eba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
laboratory.py
api/laboratory.py
+2
-2
No files found.
api/laboratory.py
View file @
71d5578f
...
@@ -17,7 +17,7 @@ class LaboratoryView(APIView):
...
@@ -17,7 +17,7 @@ class LaboratoryView(APIView):
def
post
(
self
,
request
):
def
post
(
self
,
request
):
laboratory_id
=
request
.
POST
.
get
(
'
laboratory_
id'
,
None
)
laboratory_id
=
request
.
POST
.
get
(
'id'
,
None
)
title
=
request
.
POST
.
get
(
"title"
,
""
)
title
=
request
.
POST
.
get
(
"title"
,
""
)
order
=
request
.
POST
.
get
(
"order"
,
""
)
order
=
request
.
POST
.
get
(
"order"
,
""
)
image_url
=
request
.
POST
.
get
(
"image_url"
,
""
)
image_url
=
request
.
POST
.
get
(
"image_url"
,
""
)
...
@@ -40,7 +40,7 @@ class LaboratoryDeleteView(APIView):
...
@@ -40,7 +40,7 @@ class LaboratoryDeleteView(APIView):
def
post
(
self
,
request
):
def
post
(
self
,
request
):
laboratory_id
=
request
.
POST
.
get
(
'
laboratory_
id'
,
None
)
laboratory_id
=
request
.
POST
.
get
(
'id'
,
None
)
data
=
self
.
rpc
[
'venus/sun/laboratory/delete'
](
data
=
self
.
rpc
[
'venus/sun/laboratory/delete'
](
laboratory_id
=
laboratory_id
laboratory_id
=
laboratory_id
...
...
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