Skip to content

Commit

Permalink
reference_files - use YAML file for custom signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Dec 19, 2023
1 parent 8103949 commit 43f6308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acacore/reference_files/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

download_url: str = "https://github.com/aarhusstadsarkiv/reference-files/releases/latest/download/"
actions_file: str = "fileformats.yml"
custom_signatures_file: str = "custom_signatures.json"
custom_signatures_file: str = "custom_signatures.yml"


@lru_cache
Expand All @@ -30,7 +30,7 @@ def _get_custom_signatures(url: str) -> list[CustomSignature]:
if response.getcode() != 200:
raise HTTPError(url, response.getcode(), "", response.headers, response)

return TypeAdapter(list[CustomSignature]).validate_json(response.read())
return TypeAdapter(list[CustomSignature]).validate_python(load(response.read(), Loader))


def get_actions(use_cache: bool = True) -> dict[str, Action]:
Expand Down

0 comments on commit 43f6308

Please sign in to comment.