zhangyong 10 maanden geleden
bovenliggende
commit
de991b57ac
2 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 2 2
      common/feishu.py
  2. 3 3
      video_agc/agc_video_method.py

+ 2 - 2
common/feishu.py

@@ -107,7 +107,7 @@ class Feishu:
 
     # 工作表,插入行或列
     @classmethod
-    def insert_columns(cls, log_type, crawler, sheetid, majordimension, startindex, endindex):
+    def insert_columns(cls,  crawler, sheetid, majordimension, startindex, endindex):
         """
         工作表插入行或列
         :param log_type: 日志路径
@@ -142,7 +142,7 @@ class Feishu:
 
     # 写入数据
     @classmethod
-    def update_values(cls, log_type, crawler, sheetid, ranges, values):
+    def update_values(cls, crawler, sheetid, ranges, values):
         """
         写入数据
         :param log_type: 日志路径

+ 3 - 3
video_agc/agc_video_method.py

@@ -642,7 +642,7 @@ class AgcVidoe():
                     if srt_new:
                         current_time = datetime.now()
                         formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
-                        values = [[mark, uid, srt_new , formatted_time]]
+                        values = [[mark, str(uid), srt_new , formatted_time]]
                         Feishu.insert_columns("IbVVsKCpbhxhSJtwYOUc8S1jnWb", "jd9qD9", "ROWS", 1, 2)
                         random_wait_time = random.uniform(0.5, 2.5)
                         time.sleep(random_wait_time)
@@ -772,7 +772,7 @@ class AgcVidoe():
                 if srt_new:
                     current_time = datetime.now()
                     formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
-                    values = [[mark, uid, srt_new, formatted_time]]
+                    values = [[mark, str(uid), srt_new, formatted_time]]
                     Feishu.insert_columns("IbVVsKCpbhxhSJtwYOUc8S1jnWb", "jd9qD9", "ROWS", 1, 2)
                     random_wait_time = random.uniform(0.5, 2.5)
                     time.sleep(random_wait_time)
@@ -871,7 +871,7 @@ class AgcVidoe():
                     if srt_new:
                         current_time = datetime.now()
                         formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
-                        values = [[mark, uid, srt_new, formatted_time]]
+                        values = [[mark, str(uid), srt_new, formatted_time]]
                         Feishu.insert_columns("IbVVsKCpbhxhSJtwYOUc8S1jnWb", "jd9qD9", "ROWS", 1, 2)
                         random_wait_time = random.uniform(0.5, 2.5)
                         time.sleep(random_wait_time)