liqian 2 years ago
parent
commit
bd8d51bc81
1 changed files with 1 additions and 1 deletions
  1. 1 1
      videos_similarity.py

+ 1 - 1
videos_similarity.py

@@ -83,7 +83,7 @@ def get_movie_video_top_list():
     data_df = get_data_from_odps(project='videoods', sql=sql)
     movie_videos = dict()
     for index, row in data_df.iterrows():
-        if index < 20:
+        if index < 20 and row['videoid'].isna():
             movie_videos[int(row['videoid'])] = row['title']
     return movie_videos