mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-23 07:37:15 +08:00
warning:更新需备份配置,已放弃env文件存储配置,会丢失旧配置
This commit is contained in:
1 parent
e08f55a92c
commit
43f0f730d3
1 file changed
+1
@@ -54,6 +54,7 @@ app.include_router(admin_api)
|
||||
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user