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
1331578c
Commit
1331578c
authored
Apr 30, 2019
by
haowang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add GRAP_PLATFORM.FASHION in topic batch create
parent
13a16f48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
topic.py
api/views/topic.py
+3
-1
No files found.
api/views/topic.py
View file @
1331578c
...
@@ -81,10 +81,12 @@ class CreateTopicForBatch(BaseView):
...
@@ -81,10 +81,12 @@ class CreateTopicForBatch(BaseView):
cache_key
=
topic_id_cache
cache_key
=
topic_id_cache
elif
platform
==
GRAP_PLATFORM
.
PIN
:
elif
platform
==
GRAP_PLATFORM
.
PIN
:
cache_key
=
topic_id_cache
+
":2"
cache_key
=
topic_id_cache
+
":2"
elif
platform
==
GRAP_PLATFORM
.
FASHION
:
cache_key
=
topic_id_cache
+
":3"
else
:
else
:
return
return
if
platform
in
(
GRAP_PLATFORM
.
INS
,
GRAP_PLATFORM
.
PIN
):
if
platform
in
(
GRAP_PLATFORM
.
INS
,
GRAP_PLATFORM
.
PIN
,
GRAP_PLATFORM
.
FASHION
):
for
item
in
topics
:
for
item
in
topics
:
_id
=
item
.
get
(
"id"
)
_id
=
item
.
get
(
"id"
)
if
not
_id
:
if
not
_id
:
...
...
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