(report_path: Path, paper: Dict[str, Any])
| 1977 | |
| 1978 | def _obsidian_daily_note_path(report_path: Path, paper: Dict[str, Any]) -> Optional[Path]: |
| 1979 | deep_dir = report_path.parent |
| 1980 | year_dir = deep_dir.parent |
| 1981 | if not deep_dir.name.startswith("Deep Reading - ") or not re.fullmatch(r"Daily Note 20\d{2}", year_dir.name): |
| 1982 | return None |
| 1983 | return year_dir / _daily_note_file_name(paper) |
| 1984 | |
| 1985 | |
| 1986 | def _obsidian_note_link(report_path: Path) -> str: |
| 1987 | year_dir = report_path.parent.parent |
no test coverage detected