Explorar el Código

add old video recall

liqian hace 3 años
padre
commit
8d4c2f985f
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      config.py
  2. 1 1
      old_video_recall.py

+ 2 - 2
config.py

@@ -105,8 +105,8 @@ class BaseConfig(object):
     }
 
     # 老视频更新使用数据
-    OLD_VIDEOS_PROJECT = ''
-    OLD_VIDEOS_TABLE = ''
+    OLD_VIDEOS_PROJECT = 'loghubods'
+    OLD_VIDEOS_TABLE = 'xcx_test_video'
 
     # 小程序离线ROV模型结果存放 redis key前缀,完整格式:com.weiqu.video.recall.hot.item.score.{date}
     RECALL_KEY_NAME_PREFIX = 'com.weiqu.video.recall.hot.item.score.'

+ 1 - 1
old_video_recall.py

@@ -16,7 +16,7 @@ log_ = Log()
 
 def get_old_videos():
     """获取老旧视频"""
-    now_date = datetime.strftime(datetime.today(), '%Y%m%d%H')
+    now_date = datetime.strftime(datetime.today(), '%Y%m%d')
     log_.info(f"now_date = {now_date}")
     project = config_.OLD_VIDEOS_PROJECT
     table = config_.OLD_VIDEOS_TABLE