Commit 227ec168 authored by 段英荣's avatar 段英荣

modify

parent f73d90b8
...@@ -246,7 +246,7 @@ def pictorial_topic_sort(pictorial_id=-1, offset=0, size=10): ...@@ -246,7 +246,7 @@ def pictorial_topic_sort(pictorial_id=-1, offset=0, size=10):
topic_id = item["_source"]["id"] topic_id = item["_source"]["id"]
pict_pictorial_ids_list.append(topic_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( pict_pictorial_ids_list = list(
PictorialTopics.objects.filter(pictorial_id=pictorial_id, is_online=True, is_deleted=False).values_list( PictorialTopics.objects.filter(pictorial_id=pictorial_id, is_online=True, is_deleted=False).values_list(
"topic_id", flat=True)[offset:size]) "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