diff --git a/api/ovdashboard_api/dav_calendar.py b/api/ovdashboard_api/dav_calendar.py index e0209ec..fbc07af 100644 --- a/api/ovdashboard_api/dav_calendar.py +++ b/api/ovdashboard_api/dav_calendar.py @@ -25,10 +25,10 @@ async def _get_calendar( ) -> Calendar: @run_in_executor - def _get_calendar_inner() -> Calendar: + def _inner() -> Calendar: return caldav_principal().calendar(calendar_name) - return await _get_calendar_inner() + return await _inner() @timed_alru_cache(maxsize=20) diff --git a/api/ovdashboard_api/dav_file.py b/api/ovdashboard_api/dav_file.py index 2431995..2f066bb 100644 --- a/api/ovdashboard_api/dav_file.py +++ b/api/ovdashboard_api/dav_file.py @@ -16,7 +16,7 @@ async def _get_buffer( ) -> BytesIO: @run_in_executor - def _get_buffer_inner(resource: Resource) -> BytesIO: + def _inner(resource: Resource) -> BytesIO: _logger.info(f"updating {resource}") print(f"updating {resource}") buffer = BytesIO() @@ -24,7 +24,7 @@ async def _get_buffer( return buffer resource = webdav_resource(remote_path) - return await _get_buffer_inner(resource) + return await _inner(resource) @dataclass(frozen=True)