瀏覽代碼

get_off_videos add published article save

luojunhui 3 月之前
父節點
當前提交
f8d6934a67
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      server/api/get_off_videos.py

+ 4 - 3
server/api/get_off_videos.py

@@ -53,16 +53,17 @@ class GetOffVideos(object):
         """
         """
         insert_sql = f"""
         insert_sql = f"""
             INSERT IGNORE INTO long_articles_published_trace_id
             INSERT IGNORE INTO long_articles_published_trace_id
-            (trace_id, gh_id, push_type)
+            (trace_id, gh_id, push_type, create_timestamp)
             VALUES
             VALUES
-            (%s, %s, %s);
+            (%s, %s, %s, %s);
         """
         """
         await self.mysql_client.async_insert(
         await self.mysql_client.async_insert(
             sql=insert_sql,
             sql=insert_sql,
             params=(
             params=(
                 self.trace_id,
                 self.trace_id,
                 gh_id,
                 gh_id,
-                self.push_type
+                self.push_type,
+                int(time.time())
             )
             )
         )
         )