Commit 753a4bac authored by lixiaofang's avatar lixiaofang

add

parent 886a770a
...@@ -91,8 +91,8 @@ class Topic(models.Model): ...@@ -91,8 +91,8 @@ class Topic(models.Model):
pictorial_id = PictorialTopic.objects.filter(topic_id=self.id).values_list("pictorial_id",flat=True) pictorial_id = PictorialTopic.objects.filter(topic_id=self.id).values_list("pictorial_id",flat=True)
for i in pictorial_id: for i in pictorial_id:
pictorial_id_list.append(i) pictorial_id_list.append(i)
if len(pictorial_id) > 0: if len(pictorial_id_list) > 0:
logging.info("get user attention pictorial id :%s" % pictorial_id) logging.info("get user attention pictorial id :%s" % pictorial_id_list)
return pictorial_id_list return pictorial_id_list
except: except:
......
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