Browse Source

rank---微信体系内只要有返回则选择微信体系内视频

罗俊辉 1 year ago
parent
commit
5e06423451
1 changed files with 5 additions and 0 deletions
  1. 5 0
      applications/match_alg/rank.py

+ 5 - 0
applications/match_alg/rank.py

@@ -53,6 +53,11 @@ async def best_choice(params_obj, trace_id, search_videos):
         return sorted_list[0] if sorted_list else (0, 0)
         return sorted_list[0] if sorted_list else (0, 0)
 
 
     if search_list:
     if search_list:
+        logging(
+            code="1003",
+            info="Return Best Search Video",
+            trace_id=trace_id
+        )
         return best_video_id(search_list)[0]
         return best_video_id(search_list)[0]
         # best_search_tuple = best_video_id(search_list)
         # best_search_tuple = best_video_id(search_list)
         # if best_search_tuple[1] > 0:
         # if best_search_tuple[1] > 0: