Explorar o código

恢复任务顺序

zhangyong hai 9 meses
pai
achega
f226b5e932
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      video_rewriting/video_prep.py

+ 2 - 2
video_rewriting/video_prep.py

@@ -77,7 +77,7 @@ class getVideo:
         pz_sheet = '500Oe0'
         pw_sheet = 'DgX7vC'
         task_data = Material.get_task_data(feishu_id, feishu_sheet)
-        task_data = task_data[::-1]
+        # task_data = task_data[::-1]
         if len(task_data) == 0:
             Feishu.bot(mark, '机器自动改造消息通知', f'今日任务为空,请关注', name)
             return mark
@@ -307,7 +307,7 @@ class getVideo:
                                         sheet = "Bsg5UR"
                                     Feishu.insert_columns("ILb4sa0LahddRktnRipcu2vQnLb", sheet, "ROWS", 1, 2)
                                     time.sleep(0.5)
-                                    time.sleep(random.randint(1, 2))
+                                    # time.sleep(random.randint(1, 2))
                                     Feishu.update_values("ILb4sa0LahddRktnRipcu2vQnLb", sheet, "A2:Z2", values)
                             else:
                                 Common.logger("warning").info(f"{name}的{task_mark}下的{url}视频{v_id} 视频发送票圈失败 {code}")