Commit bbe61a28 authored by 谢祁峰's avatar 谢祁峰

fix

parent e21d96b2
...@@ -684,19 +684,20 @@ class CollectData(object): ...@@ -684,19 +684,20 @@ class CollectData(object):
"venus/community/survey_question/record_kyc_last_question" in str(data['SYS'].get('action',"")): "venus/community/survey_question/record_kyc_last_question" in str(data['SYS'].get('action',"")):
action = str(data['SYS'].get('action', '')) action = str(data['SYS'].get('action', ''))
logging.info('action:%s' % action)
tag_ids = list(data["APP"].get("tag_ids", [])) tag_ids = list(data["APP"].get("tag_ids", []))
tag_list = list(Tag.objects.using(settings.SLAVE1_DB_NAME).filter( logging.info('action:%s,tag_list:%s' % (action,str(tag_ids)))
tag_query_results = list(Tag.objects.using(settings.SLAVE1_DB_NAME).filter(
id__in=tag_ids, is_online=True, is_deleted=False, id__in=tag_ids, is_online=True, is_deleted=False,
is_category=False).values_list("id")) is_category=False).values_list("id"))
tag_list = [i[0] for i in tag_list] tag_query_results_multi = [i for i in tag_ids if i in tag_query_results]
# tag_list = [i[0] for i in tag_list]
device_id = data["SYS"]["cl_id"] device_id = data["SYS"]["cl_id"]
user_id = data['SYS'].get('user_id', None) user_id = data['SYS'].get('user_id', None)
self.transfer_update_recommend_tag_list(device_id, user_feature, user_id, self.transfer_update_recommend_tag_list(device_id, user_feature, user_id,
tag_list, tag_query_results_multi,
5) 5)
logging.info("action:%s,device_id:%s,tag_list:%s" % (action, logging.info("action:%s,device_id:%s,tag_list:%s" % (action,
str(device_id), str(tag_list))) str(device_id), str(tag_query_results_multi)))
else: else:
if msg: if msg:
logging.warning( logging.warning(
......
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