|
@@ -112,7 +112,7 @@ def update_bottom_videos():
|
|
|
redis_helper.remove_by_rank_from_zset(key_name=config_.BOTTOM_KEY_NAME, start=config_.BOTTOM_NUM, stop=-1)
|
|
|
# 移除bottom key的过期时间,将其转换为永久状态
|
|
|
redis_helper.persist_key(key_name=config_.BOTTOM_KEY_NAME)
|
|
|
- log_.info('{} update bottom videos success!, video nums = {}'.format(now_date, len(videos)))
|
|
|
+ log_.info('{} update bottom videos success!, count = {}'.format(now_date, config_.BOTTOM_NUM))
|
|
|
|
|
|
# 更新视频的宽高比数据
|
|
|
video_ids = redis_helper.get_data_zset_with_index(key_name=config_.BOTTOM_KEY_NAME, start=0, end=-1)
|
|
@@ -135,8 +135,8 @@ def update_bottom_videos():
|
|
|
# 移除过期时间,将其转换为永久状态
|
|
|
redis_helper.persist_key(key_name=config_.BOTTOM_JSON_KEY_NAME)
|
|
|
|
|
|
- log_.info('{} update bottom videos info json success!, video nums = {}'.format(now_date,
|
|
|
- len(video_json_list[:1000])))
|
|
|
+ log_.info('{} update bottom videos info json success!, count = {}'.format(now_date,
|
|
|
+ len(video_json_list[:1000])))
|
|
|
|
|
|
except Exception as e:
|
|
|
log_.error(traceback.format_exc())
|