liqian %!s(int64=3) %!d(string=hai) anos
pai
achega
715c97b9f8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      video_rank.py

+ 1 - 1
video_rank.py

@@ -135,7 +135,7 @@ def bottom_strategy_last(size, app_type, ab_code):
     random_data = numpy.random.choice(bottom_data, size * 30, False)
     # 状态过滤
     filter_videos = FilterVideos(app_type=app_type, video_ids=random_data)
-    filtered_data = filter_videos.filter_video_status(video_ids=data)
+    filtered_data = filter_videos.filter_video_status(video_ids=random_data)
     bottom_data = [{'videoId': video_id, 'pushFrom': 'bottom_strategy_last', 'abCode': ab_code}
                    for video_id in filtered_data[:size]]
     return bottom_data