From b4b919db86c35af401b6d16b47e6d17b121f7a9e Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 26 Sep 2024 12:50:48 +0800 Subject: [PATCH] fix typo --- app/chain/subscribe.py | 4 ++-- app/schemas/types.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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