Skip to content

Commit

Permalink
warning:更新需备份配置,已放弃env文件存储配置,会丢失旧配置
Browse files Browse the repository at this point in the history
  • Loading branch information
vastsa committed Jun 15, 2024
1 parent e08f55a commit 43f0f73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
async def startup_event():
# 启动后台任务,不定时删除过期文件
asyncio.create_task(delete_expire_files())
# 读取用户配置
user_config, created = await KeyValue.get_or_create(key='settings', defaults={'value': DEFAULT_CONFIG})
settings.user_config = user_config.value

Expand Down

0 comments on commit 43f0f73

Please sign in to comment.