Files
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

8 lines
212 B
Python

import sqlite3
conn = sqlite3.connect('cms.db')
c = conn.cursor()
c.execute("SELECT id, code, type, content FROM home_modules WHERE type='news'")
row = c.fetchone()
print('news module:', row)
conn.close()