Skip to content

Commit

Permalink
fix: Use a cached copy of OCDS when building a profile for merging, l…
Browse files Browse the repository at this point in the history
…ike in libcoveocds, closes #351
  • Loading branch information
jpmckinney committed May 2, 2024
1 parent 005b7f1 commit 0a942fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion process/processors/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def compile_releases_by_ocdskit(collection, ocid, releases, extensions):

@functools.lru_cache
def _get_merger(extensions):
builder = ProfileBuilder(settings.COMPILER_OCDS_VERSION, extensions)
tag = settings.COMPILER_OCDS_VERSION
url = f"file://{settings.BASE_DIR / f'{tag}.zip'}"
builder = ProfileBuilder(tag, extensions, standard_base_url=url)
patched_schema = builder.patched_release_schema()
return ocdsmerge.Merger(patched_schema)

0 comments on commit 0a942fe

Please sign in to comment.