罗俊辉 hace 1 año
padre
commit
fe8db0b1dc
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 3 1
      applications/match_alg/rank.py
  2. 1 1
      applications/match_alg/recall.py

+ 3 - 1
applications/match_alg/rank.py

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

+ 1 - 1
applications/match_alg/recall.py

@@ -336,7 +336,7 @@ async def recall_videos(trace_id, s_videos):
         code="1002",
         info="召回视频",
         data={
-            "pq_list": recall_video_list,
+            "pq_list": [],
             "search_list": search_list
         },
         trace_id=trace_id