You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buffer_platform/check_ai_models.py

23 lines
516 B

import sqlite3
db_path = 'data/futures_analysis.db'
conn = sqlite3.connect(db_path)
print('=== AI模型配置 ===')
cursor = conn.execute("SELECT * FROM ai_model_configs")
cols = [desc[0] for desc in cursor.description]
print(f'字段: {cols}')
rows = cursor.fetchall()
print(f'记录数: {len(rows)}')
for row in rows:
print(dict(zip(cols, row)))
print('\n=== 分析设置 ===')
cursor = conn.execute("SELECT * FROM analysis_settings")
rows = cursor.fetchall()
for row in rows:
print(row)
conn.close()