linfan 1 year ago
parent
commit
9e49d8ff03
1 changed files with 3 additions and 2 deletions
  1. 3 2
      video_recall.py

+ 3 - 2
video_recall.py

@@ -2138,8 +2138,9 @@ class PoolRecall(object):
             # print("json_result:", json_result)
             for per_item in json_result:
                 try:
-                    video_ids.append(int(per_item[0]))
-                    recall_dict[per_item[0]] = {'videoId': per_item[0], 'flowPool': '',
+                    vid = int(per_item[0])
+                    video_ids.append(vid)
+                    recall_dict[vid] = {'videoId': per_item[0], 'flowPool': '',
                          'rovScore': per_item[1], 'pushFrom': config_.PUSH_FROM['sim_hot_vid_recall'],
                          'abCode': self.ab_code}
                 except Exception as e: