|
@@ -54,7 +54,7 @@ def Routes(mysql_client):
|
|
trace_id=trace_id
|
|
trace_id=trace_id
|
|
)
|
|
)
|
|
insert_sql = f"""
|
|
insert_sql = f"""
|
|
- INSERT INTO long_articles_video_dev
|
|
|
|
|
|
+ INSERT INTO long_articles_video
|
|
(trace_id, gh_id, article_title, article_text, account_name)
|
|
(trace_id, gh_id, article_title, article_text, account_name)
|
|
VALUES
|
|
VALUES
|
|
('{trace_id}', '{gh_id}', '{title}', '{contents}', '{account_name}');"""
|
|
('{trace_id}', '{gh_id}', '{title}', '{contents}', '{account_name}');"""
|
|
@@ -66,7 +66,7 @@ def Routes(mysql_client):
|
|
content_title = kimi_info['content_title']
|
|
content_title = kimi_info['content_title']
|
|
content_keys = json.dumps(kimi_info['content_keys'], ensure_ascii=False)
|
|
content_keys = json.dumps(kimi_info['content_keys'], ensure_ascii=False)
|
|
update_kimi_sql = f"""
|
|
update_kimi_sql = f"""
|
|
- UPDATE long_articles_video_dev SET
|
|
|
|
|
|
+ UPDATE long_articles_video SET
|
|
kimi_title = '{kimi_title}',
|
|
kimi_title = '{kimi_title}',
|
|
kimi_summary = '{content_title}',
|
|
kimi_summary = '{content_title}',
|
|
kimi_keys = '{content_keys}'
|
|
kimi_keys = '{content_keys}'
|