Commit a9dfad94 authored by lixiaofang's avatar lixiaofang

add

parent 54b990d0
......@@ -4,7 +4,7 @@ import logging
import traceback
from .tag import Tag
from .topic import TopicComplaint
from .topic import Topic
class PictorialTopic(models.Model):
......@@ -71,10 +71,10 @@ 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,
# create_time__lte=yesterday_end_time, topic_id_in=topic_id_list).count()
#
# logging.info("get topic_num:%s" % topic_num)
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)
return topic_num
......
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