Commit 82a5137f authored by ZZH's avatar ZZH

fix revise news 2024-03-11

parent afe09e23
...@@ -74,7 +74,7 @@ async def save_news_info(news_info, news_url, cover_url): ...@@ -74,7 +74,7 @@ async def save_news_info(news_info, news_url, cover_url):
async def update_news_info(news_info, news_url, cover_url): async def update_news_info(news_info, news_url, cover_url):
sql = "UPDATE official_web.news_info " \ sql = "UPDATE official_web.news_info " \
"SET title=%s, news_type=%s, news_url=%s, cover_url=%s " \ "SET title=%s, news_type=%s, news_url=%s, cover_url=%s, " \
"keywords=%s, contents=%s, pub_time=%s WHERE id=%s;" "keywords=%s, contents=%s, pub_time=%s WHERE id=%s;"
async with MysqlUtil(db="official_web") as conn: async with MysqlUtil(db="official_web") as conn:
await conn.execute(sql, (news_info["title"], news_info["news_type"], await conn.execute(sql, (news_info["title"], news_info["news_type"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment