liqian 3 years ago
parent
commit
93b6f723b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pool_predict.py

+ 1 - 1
pool_predict.py

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