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
239
240def 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
255def update_weight(profile, direction, params):

Callers 1

mainFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected