Explorar o código

文章退场配置apollo
将策略2发布探索条数从5-->8

luojunhui hai 4 meses
pai
achega
37033d75ed
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      flow_pool/exit_article_with_title.py

+ 3 - 3
flow_pool/exit_article_with_title.py

@@ -173,7 +173,7 @@ def main():
     ARTICLE_EXIT_STATUS = -1
     # 策略一:
     read_times_on_avg_threshold = article_exit_threshold['strategy_1']['read_times_on_avg']
-    discovery_times_threshold = article_exit_threshold['strategy_1']['discovery_times_threshold']
+    explore_times_threshold = article_exit_threshold['strategy_1']['explore_times_threshold']
 
     # 策略二:
     publish_times_threshold = article_exit_threshold['strategy_2']['publish_times_threshold']
@@ -193,7 +193,7 @@ def main():
     # 处理退场标题V1
     exit_article_list = article_title_manager.get_bad_articles(
         read_times_on_avg_threshold=read_times_on_avg_threshold,
-        discovery_times_threshold=discovery_times_threshold
+        discovery_times_threshold=explore_times_threshold
     )
     exit_success_count = article_title_manager.save_titles(
         title_list=exit_article_list,
@@ -215,7 +215,7 @@ def main():
             "策略1:退场文章数量": exit_success_count,
             "策略2:退场文章数量": exit_success_count_v2,
             "策略1:阅读均值倍数阈值": read_times_on_avg_threshold,
-            "策略1:探索次数阈值": discovery_times_threshold,
+            "策略1:探索次数阈值": explore_times_threshold,
             "策略2:发布次数阈值": publish_times_threshold,
             "策略2:发布天数阈值": days_threshold
         },