🐛 修复迁移旧数据库时拿错config字段的bug

This commit is contained in:
2023-11-15 00:14:03 +08:00
parent e0bd0a9252
commit 3cc93925a6

View File

@@ -64,7 +64,7 @@ def upgrade(name: str = '') -> None:
if name:
return
try:
db_path = Path(config.db_path)
db_path = Path(config.db_url)
except AttributeError:
db_path = Path('data/nonebot_plugin_tetris_stats/data.db')
if db_path.exists() is False: