diff --git a/cachito/web/api_v1.py b/cachito/web/api_v1.py index ad0a01eb1..3766252b1 100644 --- a/cachito/web/api_v1.py +++ b/cachito/web/api_v1.py @@ -780,7 +780,7 @@ def _get_valid_request_ids(all_request_ids: str) -> List[int]: def _get_all_requests(request_ids: List[int]) -> list[Request]: requests = ( Request.query.filter(Request.id.in_(request_ids)) - .options(load_only("id"), joinedload(Request.state)) + .options(load_only(Request.id), joinedload(Request.state)) # type: ignore[arg-type] .all() )