#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