Commit 2a504546 authored by Kai's avatar Kai

add logging

parent a8b5d4e9
......@@ -163,7 +163,7 @@ class CollectData(object):
click_topic_tag_list = list()
collection_tag_sql_query_results = TopicTag.objects.using(settings.SLAVE_DB_NAME).filter(topic_id=topic_id).values_list("tag_id","is_online","is_collection")
for tag_id,is_online,is_collection in collection_tag_sql_query_results:
if is_online and is_collection:
if is_online and is_collection == 1:
click_topic_tag_list.append(tag_id)
logging.info("click_topic_tag_list:%"%(str(click_topic_tag_list)))
......
......@@ -19,7 +19,7 @@ class TopicTag(models.Model):
tag_id = models.IntegerField(verbose_name=u"标签ID")
topic_id = models.IntegerField(verbose_name=u"帖子ID")
is_online = models.BooleanField(verbose_name=u"是否在线")
is_collection = models.BooleanField(verbose_name=u"是否编辑标签")
is_collection = models.IntegerField(verbose_name=u"是否编辑标签")
......
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