Add ICS calendar support
All checks were successful
Build And Test / publish (push) Successful in 48s
All checks were successful
Build And Test / publish (push) Successful in 48s
This commit is contained in:
@@ -53,7 +53,10 @@ def setup_services():
|
||||
if settings.is_calendar_configured():
|
||||
from services.calendar_service import CalendarService
|
||||
calendar_service = CalendarService(settings)
|
||||
print(f" Calendar service: enabled (CalDAV: {settings.caldav_url})")
|
||||
if settings.is_caldav_configured():
|
||||
print(f" Calendar service: enabled (CalDAV: {settings.caldav_url})")
|
||||
else:
|
||||
print(" Calendar service: enabled (ICS calendars only)")
|
||||
else:
|
||||
print(" Calendar service: disabled (not configured)")
|
||||
|
||||
@@ -116,6 +119,7 @@ def get_server_info() -> dict:
|
||||
"calendar": {
|
||||
"enabled": calendar_service is not None,
|
||||
"caldav_url": settings.caldav_url if calendar_service else None,
|
||||
"ics_calendars": [c[1] for c in settings.get_ics_calendars()] if calendar_service else [],
|
||||
},
|
||||
"contacts": {
|
||||
"enabled": contacts_service is not None,
|
||||
|
||||
Reference in New Issue
Block a user