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
f72e50ff
Commit
f72e50ff
authored
Aug 09, 2019
by
yangchenglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6688e8f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
reply.py
api/reply.py
+3
-3
No files found.
api/reply.py
View file @
f72e50ff
...
...
@@ -86,7 +86,7 @@ class ReplyManageListView(APIView):
def
get
(
self
,
request
):
page
=
int
(
request
.
GET
.
get
(
'page'
,
1
))
limit
=
int
(
request
.
GET
.
get
(
'limit'
,
10
))
id_
=
request
.
GET
.
get
(
'
id'
,
None
)
topic_id
=
request
.
GET
.
get
(
'topic_
id'
,
None
)
content
=
request
.
GET
.
get
(
'content'
,
None
)
topic_content
=
request
.
GET
.
get
(
'topic_content'
,
None
)
user_name
=
request
.
GET
.
get
(
'user_name'
,
None
)
...
...
@@ -117,8 +117,8 @@ class ReplyManageListView(APIView):
if
user_name
:
other_filters
[
'user_name'
]
=
user_name
filters
=
{}
if
id_
:
filters
[
'
id'
]
=
int
(
id_
)
if
topic_id
:
filters
[
'
topic_id'
]
=
int
(
topic_id
)
if
content
:
filters
[
'content__contains'
]
=
content
if
belong_type
:
...
...
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