Commit 6c5c085c authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'test'

add GRAP_PLATFORM.FASHION in topic batch create

See merge request alpha/saturn!46
parents cdd2e754 1331578c
......@@ -81,10 +81,12 @@ class CreateTopicForBatch(BaseView):
cache_key = topic_id_cache
elif platform == GRAP_PLATFORM.PIN:
cache_key = topic_id_cache + ":2"
elif platform == GRAP_PLATFORM.FASHION:
cache_key = topic_id_cache + ":3"
else:
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:
_id = item.get("id")
if not _id:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment