丁云鹏 3 月之前
父节点
当前提交
52b292457a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      flowpool_data_update_with_level_score_v2.py

+ 1 - 1
flowpool_data_update_with_level_score_v2.py

@@ -22,7 +22,7 @@ def get_videos_from_flow_pool(app_type, size=1000):
     :return: videos  [{'videoId': 1111, 'flowPool': ''}, ...]
     """
     # 获取批次标识,利用首次获取数据时间戳为标记
-    int(time.time()) * 1000 + 222
+    batch_flag = int(time.time()) * 1000 + 222
     log_.info(f"batch_flag: {batch_flag}")
     request_data = {'appType': app_type, 'batchFlag': batch_flag, 'size': size}
     videos = []