Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/imednet/core/endpoint/mixins/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def _update_local_cache(
result: Any,
study: str | None,
has_filters: bool,
cache: Any,
) -> None:
if has_filters or not self._enable_cache:
return
Expand Down
7 changes: 3 additions & 4 deletions src/imednet/core/endpoint/mixins/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ def _process_list_result(
result: List[T],
study: Optional[str],
has_filters: bool,
cache: Any,
) -> List[T]:
self._update_local_cache(result, study, has_filters, cache)
self._update_local_cache(result, study, has_filters)
return result

def _prepare_list_request(
Expand Down Expand Up @@ -123,7 +122,7 @@ def _list_sync(
)

result = operation.execute_sync(client, paginator_cls)
return self._process_list_result(result, state.study, state.has_filters, state.cache)
return self._process_list_result(result, state.study, state.has_filters)

async def _list_async(
self,
Expand All @@ -148,7 +147,7 @@ async def _list_async(
)

result = await operation.execute_async(client, paginator_cls)
return self._process_list_result(result, state.study, state.has_filters, state.cache)
return self._process_list_result(result, state.study, state.has_filters)

def list(
self,
Expand Down
Loading