diff --git a/app/chain/subscribe.py b/app/chain/subscribe.py index 2201e3f9..dfd9a335 100644 --- a/app/chain/subscribe.py +++ b/app/chain/subscribe.py @@ -333,7 +333,7 @@ class SubscribeChain(ChainBase): # 优先级过滤规则 if subscribe.best_version: - rule_groups = self.systemconfig.get(SystemConfigKey.BeseVersionFilterRuleGroups) + rule_groups = self.systemconfig.get(SystemConfigKey.BestVersionFilterRuleGroups) else: rule_groups = self.systemconfig.get(SystemConfigKey.SubscribeFilterRuleGroups) @@ -659,7 +659,7 @@ class SubscribeChain(ChainBase): # 过滤规则 if subscribe.best_version: - rule_groups = self.systemconfig.get(SystemConfigKey.BeseVersionFilterRuleGroups) + rule_groups = self.systemconfig.get(SystemConfigKey.BestVersionFilterRuleGroups) else: rule_groups = self.systemconfig.get(SystemConfigKey.SubscribeFilterRuleGroups) result: List[TorrentInfo] = self.filter_torrents( diff --git a/app/schemas/types.py b/app/schemas/types.py index 5dc30960..fef87d02 100644 --- a/app/schemas/types.py +++ b/app/schemas/types.py @@ -100,7 +100,7 @@ class SystemConfigKey(Enum): # 订阅默认参数 SubscribeDefaultParams = "SubscribeDefaultParams" # 洗版默认过滤规则组 - BeseVersionFilterRuleGroups = "BeseVersionFilterRuleGroups" + BestVersionFilterRuleGroups = "BestVersionFilterRuleGroups" # 订阅统计 SubscribeReport = "SubscribeReport" # 用户自定义CSS