13 lines
439 B
Python
13 lines
439 B
Python
from sqlalchemy import create_engine, text
|
|
|
|
engine = create_engine('sqlite:///cms.db')
|
|
with engine.connect() as conn:
|
|
conn.execute(text("""
|
|
UPDATE columns
|
|
SET description = '了解飞点健康最新动态、行业资讯和健康知识',
|
|
icon_name = 'Heart'
|
|
WHERE slug = 'xin-wen-zi-xun'
|
|
"""))
|
|
conn.commit()
|
|
print('Updated 新闻资讯 column: description + icon_name=Heart')
|