Commit 730866a1 authored by lixiaofang's avatar lixiaofang

add

parent 15bd6648
......@@ -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.objects.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)
......@@ -96,10 +96,10 @@ class Pictorial(models.Model):
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return False
def get_tag_by_name(self,tag_id):
def get_tag_by_name(self, tag_id):
try:
tag_name_list = []
logging.info("get tag_id:%s"%tag_id)
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