Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
saturn
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
钟尚武
saturn
Commits
7face98e
Commit
7face98e
authored
Aug 09, 2019
by
haowang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code
parent
7fd8ac80
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pictorial.py
api/views/pictorial.py
+2
-2
No files found.
api/views/pictorial.py
View file @
7face98e
...
...
@@ -34,6 +34,7 @@ class CreatePictorial(BaseView):
def
get_user_id
(
self
,
id_
,
platform
):
cache_key
=
'grap:{}:{}'
.
format
(
platform
,
id_
)
exist_key
=
'grap:{}:{}'
# print(cache_key)
value
=
ins_cache
.
get
(
cache_key
)
user_id
=
None
if
not
value
:
...
...
@@ -86,11 +87,10 @@ class CreatePictorial(BaseView):
obj
[
'from_id'
]
=
from_id
obj
[
'content'
]
=
obj
.
get
(
'comment'
)
reply
=
obj
.
pop
(
'reply'
,
None
)
if
not
reply
:
ret
.
append
(
obj
)
if
not
reply
:
continue
for
info
in
reply
:
ret
.
append
(
obj
)
info
[
'from_id'
]
=
obj
.
get
(
'from_id'
)
info
[
'reply_id'
]
=
obj
.
get
(
'id'
)
info
[
'type'
]
=
obj
.
get
(
'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