Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
get_level_and_next_impression
函数,更好地整合了好感度等级最低和最高时的逻辑,并且在好感度等级最高时返回的next_impression
和impression
相等,与后续判断升级进度相契合(好感度等级最高时进度始终为100%);config.py
文件更改好感度等级相关配置时,签到功能仍然可用。Summary by Sourcery
重构登录逻辑以修复与印象等级相关的错误,并提高代码的灵活性和可读性。确保系统能够处理印象等级的配置更改而不破坏功能。
错误修复:
get_level_and_next_impression
函数中的逻辑,以正确处理最高印象等级,确保在达到最大等级时进度始终为100%。增强功能:
config.py
中印象等级配置的变化。Original summary in English
Summary by Sourcery
Refactor the sign-in logic to fix bugs related to impression levels and improve code flexibility and readability. Ensure the system can handle configuration changes in impression levels without breaking functionality.
Bug Fixes:
get_level_and_next_impression
function to correctly handle the highest impression level, ensuring the progress is always 100% when the maximum level is reached.Enhancements:
config.py
.