#33

已合併
jihuaqiang 3 周之前 將 1 次代碼提交從 Server/feature_Trigger2合併至 Server/master
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/resetVideosToRadies.py

+ 1 - 1
utils/resetVideosToRadies.py

@@ -19,7 +19,7 @@ def reset_videos_to_radies(day=3):
         dt = (datetime.datetime.now() - datetime.timedelta(days=day)).strftime('%Y%m%d')
         logger.info(f"重置视频到Redis")
         redis_trigger_task = "task:video_trigger_insight"
-        sql =f'select clickobjectid as video_id from loghubods.user_share_log where dt = {dt} and topic = "click" group by clickobjectid order by count(distinct machinecode) desc limit 700 offset 1299'
+        sql =f'select clickobjectid as video_id from loghubods.user_share_log where dt = {dt} and topic = "click" group by clickobjectid order by count(distinct machinecode) desc limit 1300'
         data = OdpsDataCount.main(sql)
         if not data:
             return