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

+ 1 - 1
video_recall.py

@@ -75,7 +75,7 @@ class PoolRecall(object):
                 # 添加视频源参数 pushFrom, abCode
                 temp_result = [{'videoId': int(item), 'rovScore': video_score[int(item)],
                                 'pushFrom': 'recall_pool', 'abCode': self.ab_code}
-                               for item in filtered_result]
+                               for item in filtered_result if video_score.get(int(item)) is not None]
                 rov_pool_recall_result.extend(temp_result)
             else:
                 # 将此次获取的末位视频id同步刷新到Redis中,方便下次快速定位到召回位置,过期时间为1天