liqian 1 vuosi sitten
vanhempi
commit
b1ea32247e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      ad_recommend.py

+ 1 - 1
ad_recommend.py

@@ -356,7 +356,7 @@ def ad_recommend_predict(app_type, mid, video_id, ab_exp_info, ab_test_code, car
         now_date = datetime.datetime.today()
         # now_dt = datetime.datetime.strftime(now_date, '%Y%m%d')
         now_h = datetime.datetime.now().hour
-        if 0 <= now_h < 8:
+        if 15 <= now_h < 16:
             # 00:00 - 08:00 不出广告
             ad_predict = 1
             result = {