Merge pull request #1288 from LambdaYH/patch-6

修复config.yaml中把False也当成None的问题
This commit is contained in:
HibiKier 2023-03-02 19:29:41 +08:00 committed by GitHub
commit 0d76fa8560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ class ConfigsManager:
e=e,
)
value = config.value or config.default_value
if not value:
if value is None:
value = default
logger.debug(
f"获取配置 MODULE: [<u><y>{module}</y></u>] | KEY: [<u><y>{key}</y></u>] -> [<u><c>{value}</c></u>]"

View File

@ -102,7 +102,7 @@ Config.add_plugin_config(
True,
help_="被动 每日开箱重置提醒 进群默认开关状态",
default_value=True,
type=int,
type=bool,
)