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
0b99b3b6
Commit
0b99b3b6
authored
Aug 06, 2019
by
haowang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code
parent
bd45a607
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
reply.py
api/reply.py
+2
-2
No files found.
api/reply.py
View file @
0b99b3b6
...
@@ -61,7 +61,7 @@ class ReplyListView(APIView):
...
@@ -61,7 +61,7 @@ class ReplyListView(APIView):
filters
[
'create_time__lte'
]
=
to_create_time
filters
[
'create_time__lte'
]
=
to_create_time
try
:
try
:
data
=
self
.
rpc
[
'venus/sun/
manage/reply
/list'
](
offset
=
(
page
-
1
)
*
limit
,
limit
=
limit
,
filters
=
filters
,
other_filters
=
other_filters
)
.
unwrap
()
data
=
self
.
rpc
[
'venus/sun/
reply/manage
/list'
](
offset
=
(
page
-
1
)
*
limit
,
limit
=
limit
,
filters
=
filters
,
other_filters
=
other_filters
)
.
unwrap
()
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'获取reply列表失败
%
s'
,
e
)
error_logger
.
error
(
u'获取reply列表失败
%
s'
,
e
)
raise
raise
...
@@ -87,7 +87,7 @@ class ReplyCreateView(APIView):
...
@@ -87,7 +87,7 @@ class ReplyCreateView(APIView):
'type'
:
REPLY_TYPE
.
PUPPET_REPLY_ANS
,
'type'
:
REPLY_TYPE
.
PUPPET_REPLY_ANS
,
}
}
try
:
try
:
rep
=
self
.
rpc
[
'venus/sun/
manage/reply
/edit'
](
id_
=
id_
,
data
=
data
)
.
unwrap
()
rep
=
self
.
rpc
[
'venus/sun/
reply/manage
/edit'
](
id_
=
id_
,
data
=
data
)
.
unwrap
()
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'创建/编辑
%
s-reply信息失败
%
s'
%
(
id
,
e
))
error_logger
.
error
(
u'创建/编辑
%
s-reply信息失败
%
s'
%
(
id
,
e
))
raise
raise
...
...
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