Skip to content

Commit

Permalink
[#889] Removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
vaszig committed Nov 18, 2022
1 parent 7cd087c commit 26dd5fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/open_inwoner/accounts/views/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
fetch_status_history,
)
from open_inwoner.openzaak.catalog import (
fetch_case_types,
fetch_single_case_type,
fetch_single_status_type,
fetch_status_types,
Expand Down
20 changes: 0 additions & 20 deletions src/open_inwoner/openzaak/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,6 @@ def fetch_single_status_type(status_type_url: str) -> Optional[StatusType]:
return status_type


def fetch_case_types() -> List[ZaakType]:
client = build_client("catalogi")

if client is None:
return []

try:
response = get_paginated_results(client, "zaaktype")
except RequestException as e:
logger.exception("exception while making request", exc_info=e)
return []
except ClientError as e:
logger.exception("exception while making request", exc_info=e)
return []

case_types = factory(ZaakType, response)

return case_types


@cache_result("zaaktype:{case_type_url}", timeout=60 * 60)
def fetch_single_case_type(case_type_url: str) -> Optional[ZaakType]:
client = build_client("catalogi")
Expand Down

0 comments on commit 26dd5fc

Please sign in to comment.