Skip to content

修复设置页异常数字字段导致保存失败 (#90) - #90

Merged
jlcbk merged 1 commit into
mainfrom
fix/settings-numeric-form
May 31, 2026
Merged

jlcbk merged 1 commit into
mainfrom
fix/settings-numeric-form

Conversation

@jlcbk

@jlcbk jlcbk commented May 31, 2026

Copy link
Copy Markdown
Owner

修复 /settings 表单空值/非数字值导致 ValueError 无法保存的问题:

  • refresh_interval、refresh_page、session_limit、stale_after_seconds 改用现有安全归一化逻辑,非法值沿用当前配置不中断保存
  • status_stale_after_seconds() 补充分显式 value 参数便于复用范围校验
  • 补充设置页非法数字字段的测试

/cc @scnet_brain

@jlcbk
jlcbk merged commit eef0731 into main May 31, 2026
2 checks passed
@jlcbk
jlcbk deleted the fix/settings-numeric-form branch May 31, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant