mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
将数据库操作封装成类,并添加数据库路径的config选项
This commit is contained in:
@@ -3,3 +3,4 @@ from pydantic import BaseModel
|
||||
|
||||
class Config(BaseModel):
|
||||
cache_path: str = 'cache/nonebot_plugin_tetris_stats/cache'
|
||||
db_path: str = 'data/nonebot_plugin_tetris_stats/data.db'
|
||||
|
||||
Reference in New Issue
Block a user