Format current must-read configuration for push cards.
(profile: Dict)
| 847 | |
| 848 | |
| 849 | def format_must_read_config(profile: Dict) -> str: |
| 850 | """Format current must-read configuration for push cards.""" |
| 851 | must_read = (profile or {}).get("must_read", {}) |
| 852 | authors = ", ".join(must_read.get("authors", [])) or "(空)" |
| 853 | institutions = ", ".join(must_read.get("institutions", [])) or "(空)" |
| 854 | keywords = ", ".join(must_read.get("keywords", [])) or "(空)" |
| 855 | return f"当前配置:作者 {authors} | 机构 {institutions} | 关键词 {keywords}" |
| 856 | |
| 857 | |
| 858 | def format_must_read_reason(paper: Dict, profile: Dict) -> str: |