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

modify

parent 4cfeea81
......@@ -10,7 +10,7 @@ from search.utils.topic import TopicUtils
from libs.es import ESPerform
from libs.cache import redis_client
from search.utils.common import *
from trans2es.models.tag import TopicTag,AccountUserTag,CommunityTagFollow
from trans2es.models.tag import TopicTag,AccountUserTag,CommunityTagFollow,Tag
import time
......@@ -130,6 +130,7 @@ def choice_push_tag(device_id, user_id):
account_user_tag_list.extend(linucb_recommend_tag_list)
unread_tag_list = list(set(account_user_tag_list) - set(redis_push_tag_list))
unread_tag_list = list(Tag.objects.filter(id__in=unread_tag_list, is_online=True, is_deleted=False).values_list("id",flat=True))
ret_tag_set = set()
if len(unread_tag_list)>0:
for tag_id in unread_tag_list:
......
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