liqian il y a 3 ans
Parent
commit
1434610641
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      video_recall.py

+ 3 - 3
video_recall.py

@@ -388,13 +388,13 @@ class PoolRecall(object):
             video_ids = []
             video_ids = []
             video_info = {}
             video_info = {}
             for item in eval(data):
             for item in eval(data):
-                log_.info('=== item === {}'.format(item))
+                log_.info('=== uid: {},  item === {}'.format(self.uid, item))
                 video_id = int(item['videoId'])
                 video_id = int(item['videoId'])
                 # 判断 视频推荐区域与用户地址信息 是否匹配,市级别
                 # 判断 视频推荐区域与用户地址信息 是否匹配,市级别
                 city_code_list = item['cityCode'].split(',')
                 city_code_list = item['cityCode'].split(',')
                 if self.client_info.get('cityCode') in city_code_list or config_.ALL_AREA_CODE in city_code_list:
                 if self.client_info.get('cityCode') in city_code_list or config_.ALL_AREA_CODE in city_code_list:
-                    log_.info('===2=== {}, ===3=== video_id: {}, cityCode: {}'.format(
-                        self.client_info.get('cityCode'), video_id, city_code_list))
+                    log_.info('=== uid: {}, ===2=== {}, ===3=== video_id: {}, cityCode: {}'.format(
+                        self.uid, self.client_info.get('cityCode'), video_id, city_code_list))
                     if video_id in video_ids and item['score'] > video_info[video_id].get('score'):
                     if video_id in video_ids and item['score'] > video_info[video_id].get('score'):
                         # 如果video_id有重复,score保留大分值
                         # 如果video_id有重复,score保留大分值
                         video_info[video_id] = {'score': item['score'], 'cityCode': city_code_list}
                         video_info[video_id] = {'score': item['score'], 'cityCode': city_code_list}