丁云鹏 пре 4 месеци
родитељ
комит
42f4df0805

+ 1 - 1
flowpool_data_update_with_level_score_v2.py

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

+ 1 - 1
flowpool_data_update_with_level_supply_v2.py

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

+ 1 - 1
flowpool_data_update_with_level_v2.py

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