Commit f0f2bb52 authored by 段英荣's avatar 段英荣

Merge branch 'sync_tx' into 'master'

modify

See merge request !185
parents d3dde44a 0498bfcb
......@@ -46,9 +46,11 @@ class TagTransfer(object):
if instance.is_online==True and instance.is_deleted==False:
topic_id_list = list()
sql_result_list = TopicTag.objects.using(settings.SLAVE_DB_NAME).filter(tag_id=instance.id,is_online=True).values_list("topic_id",flat=True)
for item_id in sql_result_list:
topic_id_list.append(item_id)
sql_result_results = TopicTag.objects.using(settings.SLAVE_DB_NAME).filter(
tag_id=instance.id).values_list("topic_id", "is_online")
for item in sql_result_results:
if item.is_online:
topic_id_list.append(item.topic_id)
time_base_val = datetime.datetime.strftime(datetime.datetime.now()+datetime.timedelta(-7), "%Y-%m-%d")
......
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