mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-30 04:27:40 +08:00
fix: 修复 SiteUpdated 事件清理站点数据时 SystemConfigService 无 all() 方法报错
This commit is contained in:
+2
-1
@@ -641,8 +641,9 @@ class SiteChain(InteractionChainMixin, ChainBase):
|
||||
# 获取主域名中间那段
|
||||
domain_host = url_tools.host_label(domain)
|
||||
# 查询以"site.domain_host"开头的配置项,并清除
|
||||
# SystemConfigService 未提供 all(),无参 get() 经仓库返回全部配置字典
|
||||
systemconfig = get_configured_system_config()
|
||||
site_keys = systemconfig.all().keys()
|
||||
site_keys = systemconfig.get().keys()
|
||||
for key in site_keys:
|
||||
if key.startswith(f"site.{domain_host}"):
|
||||
logger.info(f"清理站点配置:{key}")
|
||||
|
||||
Reference in New Issue
Block a user