zhangyong 1 год назад
Родитель
Сommit
78f017aac9
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      gongzhongxinhao/gongzhongxinhao/gongzhongxinhao_author.py

+ 3 - 0
gongzhongxinhao/gongzhongxinhao/gongzhongxinhao_author.py

@@ -271,6 +271,8 @@ class GZXHAuthor:
         if not pipeline.repeat_video():
             return True
         else:
+            current_time = datetime.now()
+            timestamp = current_time.strftime("%Y-%m-%d %H:%M:%S")
             values = [[
                 user_name,
                 video_id,
@@ -279,6 +281,7 @@ class GZXHAuthor:
                     .replace('"', "")
                     .replace("'", ""),
                 publish_time_str,
+                timestamp,
                 video_url,
                 article.get("head_pic", ""),
                 self.user_dict['link']