MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / refresh_settings

Function refresh_settings

core/config.py:71–75  ·  view source on GitHub ↗

从数据库读取最新配置并应用到运行时。

()

Source from the content-addressed store, hash-verified

69
70
71async def refresh_settings() -> None:
72 """从数据库读取最新配置并应用到运行时。"""
73 config_record = await KeyValue.filter(key="settings").first()
74 settings.user_config = config_record.value if config_record and config_record.value else {}
75 _sync_ip_limits()
76
77
78def is_runtime_initialized() -> bool:

Callers 7

load_configFunction · 0.90
delete_expire_filesFunction · 0.90
clean_incomplete_uploadsFunction · 0.90
update_configMethod · 0.90
ensure_security_settingsFunction · 0.85
initialize_systemFunction · 0.85

Calls 3

_sync_ip_limitsFunction · 0.85
firstMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected