Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“面试题”的进度显示错误 #41

Closed
Autumnal-Joy opened this issue Feb 17, 2025 · 0 comments
Closed

“面试题”的进度显示错误 #41

Autumnal-Joy opened this issue Feb 17, 2025 · 0 comments

Comments

@Autumnal-Joy
Copy link
Collaborator

Autumnal-Joy commented Feb 17, 2025

面试题有大编号和小编号,如 "面试题 17.06",17是大编号,06是小编号。

问题:

  1. 同步进度设置 '{"面试题 17.06": "AC"}' 后,对应题目进度仍旧显示为 "Todo"
  2. 同步进度设置 '{"面试题 17": "AC"}' 后,所有大编号为17的题目 "面试题 17.xx" 进度显示为 "AC"
  3. 将 "面试题 17.06" 的进度选择为 "AC" 后,同步进度新增了了 '{"面试题 17": "AC"}'

原因:
题目通常名称为 "<id>. <name>",而面试题的id中包含 '.',表示为 "面试题<id1>.<id2>. <name>",因此直接使用 '.' 分割字符串产生了id提取的错误,应当改用 ". "(多一个空格) 来分割字符串

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

No branches or pull requests

1 participant