List current must-read items
(profile)
| 238 | |
| 239 | |
| 240 | def list_must_read(profile): |
| 241 | """List current must-read items""" |
| 242 | must_read = profile.get('must_read', {}) |
| 243 | lines = ["当前必读清单:", ""] |
| 244 | for key, label in [('authors', '作者'), ('institutions', '机构'), ('keywords', '关键词')]: |
| 245 | items = must_read.get(key, []) |
| 246 | lines.append(f"{label} ({len(items)}):") |
| 247 | for item in items: |
| 248 | lines.append(f" 🔒 {item}") |
| 249 | if not items: |
| 250 | lines.append(" (空)") |
| 251 | lines.append("") |
| 252 | return "\n".join(lines) |
| 253 | |
| 254 | |
| 255 | def update_weight(profile, direction, params): |