Commit 15bd6648 authored by lixiaofang's avatar lixiaofang

add

parent af2ae9c2
......@@ -71,7 +71,7 @@ class Pictorial(models.Model):
logging.info("get topic_id_list:%s" % topic_id_list)
topic_num = Topic.filter(content_level__in=("4", "5"), create_time__gte=yesterday_begin_time,
topic_num = Topic.filter(content_level__in=["4", "5"], create_time__gte=yesterday_begin_time,
create_time__lte=yesterday_end_time, topic_id_in=topic_id_list).count()
logging.info("get topic_num:%s" % topic_num)
......@@ -99,6 +99,7 @@ class Pictorial(models.Model):
def get_tag_by_name(self,tag_id):
try:
tag_name_list = []
logging.info("get tag_id:%s"%tag_id)
tags = Tag.objects.filter(id_in=tag_id, is_online=True).values_list("name", flat=True)
logging.info("get tags name :%s" % tags)
......
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