MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / list_must_read

Function list_must_read

scripts/add_must_read.py:240–252  ·  view source on GitHub ↗

List current must-read items

(profile)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected