Skip to content

Commit

Permalink
fix: Hardcode URL for statistic.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 12, 2023
1 parent 7736eef commit 951c83e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extension_explorer/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ def _codelist_url(basename, extension_version, lang):
anchor = re.sub(r'[A-Z]', lambda s: '-' + s[0].lower(), os.path.splitext(basename)[0])
url = f'{codelist_reference_url}#{anchor}'
else:
# XXX: Hardcoding.
if basename == 'statistic.csv':
url = url_for('extension_codelists', lang=lang, identifier='bids', version='master', _anchor=basename)
raise NotImplementedError(f"linking to another extension's codelist is not implemented: {basename}")

return url
Expand Down

0 comments on commit 951c83e

Please sign in to comment.