fix site plugin

This commit is contained in:
jxxghp
2023-06-09 07:42:35 +08:00
parent f5f9f5349a
commit 8f984ce59c
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ class SiteStatistic(_PluginBase):
# 没有指定站点,默认使用全部站点
if not specify_sites:
refresh_sites = self.sites.get_indexers()
refresh_sites = [site for site in self.sites.get_indexers() if not site.get("public")]
else:
refresh_sites = [site for site in self.sites.get_indexers() if
site.get("name") in specify_sites]