@@ -326,11 +326,8 @@ def auto_add_missing_columns():
try:
import sqlite3
- # 数据库文件路径
- db_path = "C:/Zhihuiyin/database.db"
-
# 连接数据库
- conn = sqlite3.connect(db_path)
+ conn = sqlite3.connect(sqlite_file_name)
cursor = conn.cursor()
# 检查表是否存在