(user_id: str)
| 2289 | |
| 2290 | |
| 2291 | def _daily_note_user_profile(user_id: str) -> Dict[str, Any]: |
| 2292 | if not user_id: |
| 2293 | return {} |
| 2294 | try: |
| 2295 | profile = get_profile(user_id) or {} |
| 2296 | return ensure_profile_schema(profile) if isinstance(profile, dict) else {} |
| 2297 | except Exception as exc: |
| 2298 | print(f" Daily Note profile lookup skipped: {exc}") |
| 2299 | return {} |
| 2300 | |
| 2301 | |
| 2302 | def _daily_note_profile_terms(user_profile: Optional[Dict[str, Any]]) -> List[str]: |
no test coverage detected