Quellcode durchsuchen

update abs(uv_differ) < not_update --> abs(uv_differ) <= not_update

liqian vor 2 Jahren
Ursprung
Commit
f738f848ba
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      ad_threshold_auto_update.py

+ 1 - 1
ad_threshold_auto_update.py

@@ -90,7 +90,7 @@ def get_threshold_record_new_by_uv(ad_abtest_abcode_config, feature_df, threshol
                 continue
             # 计算uv差值
             uv_differ = current_uv - target_uv
-            if abs(uv_differ) < not_update:
+            if abs(uv_differ) <= not_update:
                 continue
             # 获取当前阈值参数
             threshold_param_old = threshold_record_old[ab_test_group].get('group')