Browse Source

修改规则

罗俊辉 1 năm trước cách đây
mục cha
commit
fe8db0b1dc
2 tập tin đã thay đổi với 4 bổ sung2 xóa
  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