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

Function _obsidian_daily_note_path

agents/reading-agent/main.py:1979–1984  ·  view source on GitHub ↗
(report_path: Path, paper: Dict[str, Any])

Source from the content-addressed store, hash-verified

1977
1978def _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
1986def _obsidian_note_link(report_path: Path) -> str:
1987 year_dir = report_path.parent.parent

Callers 3

Calls 1

_daily_note_file_nameFunction · 0.85

Tested by

no test coverage detected