perf: 优化制作组读取自定义制作组的逻辑,避免被空字符串的list影响最终结果

This commit is contained in:
Dee Luo
2025-04-10 11:00:46 +08:00
committed by GitHub
parent ab1df59f7a
commit 1bef4f9a4d

View File

@@ -97,6 +97,8 @@ class ReleaseGroupsMatcher(metaclass=Singleton):
if not groups:
# 自定义组
custom_release_groups = self.systemconfig.get(SystemConfigKey.CustomReleaseGroups)
if isinstance(custom_release_groups, list):
custom_release_groups = list(filter(None, custom_release_groups))
if custom_release_groups:
custom_release_groups_str = '|'.join(custom_release_groups)
groups = f"{self.__release_groups}|{custom_release_groups_str}"