Explorar o código

reset py change

jihuaqiang hai 2 semanas
pai
achega
1cc814e9df
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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