second commit

This commit is contained in:
2025-12-07 14:57:55 +08:00
parent dac41786ec
commit bad11ad5da
9 changed files with 96 additions and 24 deletions

View File

@@ -9,7 +9,7 @@ logger = setup_logger()
def connect_db() -> Connection | None:
"""连接数据库,如果没有则初始化数据库和表"""
try:
config = toml.load("../config.toml")
config = toml.load("config.toml")
db_host = config["db_host"]
db_port = config["db_port"]
db_user = config["db_user"]