From d2605287f7f000becbe4e0386e048bef8d578f65 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 12 Mar 2026 06:43:46 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20briefing=20pipeline=20=E2=80=94=20pass?= =?UTF-8?q?=20user=5Fid=20to=20is=5Fcaldav=5Fconfigured,=20use=20p.title?= =?UTF-8?q?=20not=20p.get()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fabledassistant/services/briefing_pipeline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fabledassistant/services/briefing_pipeline.py b/src/fabledassistant/services/briefing_pipeline.py index 5b56d76..62b48e8 100644 --- a/src/fabledassistant/services/briefing_pipeline.py +++ b/src/fabledassistant/services/briefing_pipeline.py @@ -80,7 +80,7 @@ async def _gather_internal(user_id: int) -> dict: # Calendar events today calendar_events = [] try: - if is_caldav_configured(): + if is_caldav_configured(user_id): events = await list_events(user_id, start=today, end=today) calendar_events = [ f"{e.get('summary', 'Event')} at {e.get('dtstart', 'unknown time')}" @@ -94,7 +94,7 @@ async def _gather_internal(user_id: int) -> dict: try: projects = await list_projects(user_id) for p in projects[:5]: - projects_summary.append(p.get("title", "Untitled project")) + projects_summary.append(p.title or "Untitled project") except Exception: logger.warning("Failed to gather projects for briefing", exc_info=True)