zhangyong пре 9 месеци
родитељ
комит
99c6c61f22
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      video_rewriting/video_prep.py

+ 3 - 3
video_rewriting/video_prep.py

@@ -235,9 +235,9 @@ class getVideo:
                                 formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
                                 sqlCollect.insert_machine_making_data(name, task_mark, channel_id, url, v_id, piaoquan_id, new_title, code, formatted_time, old_title)
                                 if title == "原标题" or title == "AI标题":
-                                    values = [[name, task_mark, channel_id, url, v_id, piaoquan_id, old_title, title,new_title, str(code), formatted_time, str(rule)]]
+                                    values = [[name, task_mark, channel_id, url, str(v_id), piaoquan_id, old_title, title,new_title, str(code), formatted_time, str(rule)]]
                                 else:
-                                    values = [[name, task_mark, channel_id, url, v_id, piaoquan_id, old_title, "",new_title, str(code), formatted_time, str(rule)]]
+                                    values = [[name, task_mark, channel_id, url, str(v_id), piaoquan_id, old_title, "",new_title, str(code), formatted_time, str(rule)]]
                                 # 使用锁保护表格插入操作
                                 with lock:
                                     if name == "王雪珂":
@@ -259,7 +259,7 @@ class getVideo:
                                     elif name == "信欣":
                                         sheet = "lPe1eT"
                                     elif name == "快手创作者版品类推荐流":
-                                        sheet = "1aOVQa"
+                                        sheet = "k7l7nQ"
                                     Feishu.insert_columns("ILb4sa0LahddRktnRipcu2vQnLb", sheet, "ROWS", 1, 2)
                                     time.sleep(0.5)
                                     Feishu.update_values("ILb4sa0LahddRktnRipcu2vQnLb", sheet, "A2:Z2", values)