Commit cf1b5e99 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Delay loading caldav

parent 08cd0d74
...@@ -6,7 +6,6 @@ import ipaddress ...@@ -6,7 +6,6 @@ import ipaddress
from models.database import TodoState from models.database import TodoState
from validators import CheckTodoDateByState from validators import CheckTodoDateByState
from calendarpush import Client as CalendarClient
from shared import current_user from shared import current_user
import config import config
...@@ -38,6 +37,7 @@ def get_todostate_choices(): ...@@ -38,6 +37,7 @@ def get_todostate_choices():
] ]
def get_calendar_choices(protocoltype=None): def get_calendar_choices(protocoltype=None):
from calendarpush import Client as CalendarClient
calendars = CalendarClient().get_calendars() calendars = CalendarClient().get_calendars()
choices = [] choices = []
if calendars is not None: if calendars is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment