diff --git a/backend/routers/ical_router.py b/backend/routers/ical_router.py index b10ad04..9a35ca7 100644 --- a/backend/routers/ical_router.py +++ b/backend/routers/ical_router.py @@ -50,6 +50,7 @@ def _fetch_ics(url: str) -> str: try: resp = http_requests.get(url, timeout=30, allow_redirects=True) resp.raise_for_status() + resp.encoding = 'utf-8' return resp.text except http_requests.RequestException as e: raise ValueError(f"Fehler beim Abrufen der URL: {e}") diff --git a/backend/routers/settings_router.py b/backend/routers/settings_router.py index bcd787d..6c4fc27 100644 --- a/backend/routers/settings_router.py +++ b/backend/routers/settings_router.py @@ -96,7 +96,7 @@ def update_settings( # For these three override colours, an explicit null is meaningful # ("reset to default") and must be persisted as NULL. All other fields # keep the previous behaviour where a null/missing value is ignored. - NULLABLE_OVERRIDES = {"text_color", "line_color", "bg_color", "group_visible_calendar_id", "default_reminder_minutes"} + NULLABLE_OVERRIDES = {"text_color", "line_color", "bg_color", "group_visible_calendar_id", "default_reminder_minutes", "default_event_duration_minutes"} update_data = data.model_dump(exclude_unset=True) for field, value in update_data.items(): if field in NULLABLE_OVERRIDES: