|
@@ -40,7 +40,7 @@ class PoolRecall(object):
|
|
|
top_video_ids, top_video_result = [], []
|
|
|
else:
|
|
|
top_video_ids, top_video_result = self.get_top_videos()
|
|
|
- log_.info('top video result = {}'.format(top_video_ids))
|
|
|
+ log_.info('===top video result = {}'.format(top_video_ids))
|
|
|
|
|
|
|
|
|
update_rov_video_ids, update_rov_result = self.get_update_rov_videos()
|
|
@@ -388,13 +388,16 @@ class PoolRecall(object):
|
|
|
video_ids = []
|
|
|
video_info = {}
|
|
|
for item in eval(data):
|
|
|
-
|
|
|
+
|
|
|
video_id = int(item['videoId'])
|
|
|
|
|
|
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 video_id in video_ids and item['score'] > video_info[video_id].get('score'):
|
|
|
|
|
|
video_info[video_id] = {'score': item['score'], 'cityCode': city_code_list}
|