丁云鹏 hai 3 meses
pai
achega
902f69d587

+ 1 - 2
flowpool_data_update_with_level_score_v2.py

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

+ 1 - 1
flowpool_data_update_with_level_v2.py

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