Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

JUST_UPDATE设置无效的一个问题 #41

Open
yjy123123 opened this issue Jul 13, 2022 · 0 comments
Open

JUST_UPDATE设置无效的一个问题 #41

yjy123123 opened this issue Jul 13, 2022 · 0 comments

Comments

@yjy123123
Copy link

yjy123123 commented Jul 13, 2022

default.py 里面定义
just_update = _ _("JUST_UPDATE", True)
双下划线本身定义了一个转小写, _ _ = lambda x, y: _(x, str(y)).lower() == str(y).lower()
但是这样设置的话just_update = __("JUST_UPDATE", False),False转小写false,false 再转bool值,还是为True了。no_porn_img、send_for_test、debug和limit_log可能都会有这个问题。
直接修改:
just_update = _("JUST_UPDATE", True)

@yjy123123 yjy123123 changed the title 关于JUST_UPDATE的一个错误 JUST_UPDATE设置无效的一个问题 Jul 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant