Commit 4893144a authored by 段英荣's avatar 段英荣

Merge branch 'branch_0520' into 'test'

modify

See merge request alpha/physical!337
parents ac249a6f 227ec168
......@@ -246,7 +246,7 @@ def pictorial_topic_sort(pictorial_id=-1, offset=0, size=10):
topic_id = item["_source"]["id"]
pict_pictorial_ids_list.append(topic_id)
if len(pict_pictorial_ids_list)>0 and offset==0:
if len(pict_pictorial_ids_list)==0 and offset==0:
pict_pictorial_ids_list = list(
PictorialTopics.objects.filter(pictorial_id=pictorial_id, is_online=True, is_deleted=False).values_list(
"topic_id", flat=True)[offset:size])
......
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