Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cybertron
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
alpha
cybertron
Commits
a2181456
Commit
a2181456
authored
5 years ago
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
caecfb30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
answer_reply1.py
answer_reply1.py
+2
-1
No files found.
answer_reply1.py
View file @
a2181456
...
@@ -59,12 +59,13 @@ if __name__ == "__main__":
...
@@ -59,12 +59,13 @@ if __name__ == "__main__":
data_dict
=
json
.
loads
(
response
)
data_dict
=
json
.
loads
(
response
)
reply_id
=
data_dict
[
"data"
][
"id"
]
reply_id
=
data_dict
[
"data"
][
"id"
]
reply_user_id
=
data_dict
[
"data"
][
"user"
][
"id"
]
reply_user_id
=
data_dict
[
"data"
][
"user"
][
"id"
]
logging
.
info
(
"get topic_id:
%
s"
%
i
[
1
])
reply_data_comment
.
append
(
reply_data_comment
.
append
(
{
"id"
:
reply_id
,
"reply_user_id"
:
reply_user_id
,
"answer"
:
comment2
,
"topic_id"
:
i
[
1
]})
{
"id"
:
reply_id
,
"reply_user_id"
:
reply_user_id
,
"answer"
:
comment2
,
"topic_id"
:
i
[
1
]})
redis_client
=
set_reply_to_redis
()
redis_client
=
set_reply_to_redis
()
redis_client
.
hset
(
redis_key1
,
str
(
minute
),
json
.
dumps
(
reply_data_comment
))
redis_client
.
hset
(
redis_key1
,
str
(
minute
),
json
.
dumps
(
reply_data_comment
))
logging
.
info
(
"get eeeeeeee:
%
s"
%
str
(
minute
-
5
))
logging
.
info
(
"get eeeeeeee:
%
s"
%
str
(
minute
-
5
))
have_reply1
=
redis_client
.
hget
(
redis_key1
,
str
(
minute
-
5
))
have_reply1
=
redis_client
.
hget
(
redis_key1
,
str
(
minute
-
5
))
logging
.
info
(
"get have_reply1:
%
s"
%
have_reply1
)
logging
.
info
(
"get have_reply1:
%
s"
%
have_reply1
)
if
have_reply1
:
if
have_reply1
:
...
...
This diff is collapsed.
Click to expand it.
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