소스 검색

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 IGNORE INTO long_articles_published_trace_id
-            (trace_id, gh_id, push_type)
+            (trace_id, gh_id, push_type, create_timestamp)
             VALUES
-            (%s, %s, %s);
+            (%s, %s, %s, %s);
         """
         await self.mysql_client.async_insert(
             sql=insert_sql,
             params=(
                 self.trace_id,
                 gh_id,
-                self.push_type
+                self.push_type,
+                int(time.time())
             )
         )