Browse Source

update video recall

linfan 1 year ago
parent
commit
52ad36ae63
1 changed files with 4 additions and 4 deletions
  1. 4 4
      video_recall.py

+ 4 - 4
video_recall.py

@@ -2670,22 +2670,22 @@ class PoolRecall(object):
         if not mid:
             return  []
         recall_key = "u2i:"+mid
-        #print("recall_key:", recall_key)
+        print("recall_key:", recall_key)
         data = self.redis_helper.get_data_from_redis(key_name=recall_key)
 
-        #print(data)
+        print(data)
         recall_result = []
         recall_dict  = {}
         video_ids = []
         if data is not None:
             json_result = json.loads(data)
-            # print("json_result:", json_result)
+            print("json_result:", json_result)
             for per_item in json_result:
                 try:
                     vid = int(per_item[0])
                     video_ids.append(vid)
                     recall_dict[vid] = {'videoId': vid, 'flowPool': '',
-                         'rovScore': per_item[1], 'pushFrom': config_.PUSH_FROM['hot_recall'],
+                         'rovScore': per_item[1], 'pushFrom': config_.PUSH_FROM['u2i_tag_recall'],
                          'abCode': self.ab_code}
                 except Exception as e:
                     continue