liqian 3 years ago
parent
commit
ef951fef44
1 changed files with 2 additions and 1 deletions
  1. 2 1
      video_recall.py

+ 2 - 1
video_recall.py

@@ -381,7 +381,7 @@ class PoolRecall(object):
             # 获取生效中的置顶视频列表
             redis_helper = RedisHelper()
             data = redis_helper.get_data_from_redis(key_name=config_.TOP_VIDEO_LIST_KEY_NAME)
-            print(data)
+            log_.info('===1===  {}'.format(data))
             if data is None:
                 return [], []
             # 获取视频id,并转换类型为int,将videoId和score做mapping,并存储为key-value{videoId: score}
@@ -392,6 +392,7 @@ class PoolRecall(object):
                 # 判断 视频推荐区域与用户地址信息 是否匹配,市级别
                 # video_area_list = item['area'].split(',')
                 if self.client_info.get('city') in item['area'] or '全部' == item['area']:
+                    log_.info('===2=== {}, ===3=== {}'.format(self.client_info.get('city'), item['area']))
                     video_ids.append(video_id)
                     video_info[video_id] = {'score': item['score'], 'area': item['area']}