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
9ac79451
Commit
9ac79451
authored
May 07, 2019
by
haowang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify tag filter delete to batch
parent
a500ef19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
tag.py
api/tag.py
+6
-5
No files found.
api/tag.py
View file @
9ac79451
...
@@ -186,14 +186,15 @@ class TagFilterCreate(APIView):
...
@@ -186,14 +186,15 @@ class TagFilterCreate(APIView):
class
TagFilterDelete
(
APIView
):
class
TagFilterDelete
(
APIView
):
def
post
(
self
,
request
):
def
post
(
self
,
request
):
id_
=
request
.
POST
.
get
(
'id'
,
None
)
if
not
id_
:
ids
=
json
.
loads
(
request
.
POST
.
get
(
'ids'
,
'[]'
))
if
not
ids
:
return
{
'message'
:
'参数不完整'
}
return
{
'message'
:
'参数不完整'
}
data
=
self
.
rpc
[
'venus/sun/tag/filter/delete'
](
id_
=
id_
)
.
unwrap
()
for
id_
in
ids
:
data
=
self
.
rpc
[
'venus/sun/tag/filter/delete'
](
id_
=
id_
)
.
unwrap
()
if
not
data
:
if
not
data
:
return
{
'message'
:
'操作失败'
}
return
{
'message'
:
'操作失败'
}
return
{
'message'
:
'操作成功'
}
return
{
'message'
:
'操作成功'
}
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