Skip to content

Commit

Permalink
fix: Fix previous commit if-else branching
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 12, 2023
1 parent 951c83e commit bd64af9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extension_explorer/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ def _codelist_url(basename, extension_version, lang):
elif basename in codelist_names:
anchor = re.sub(r'[A-Z]', lambda s: '-' + s[0].lower(), os.path.splitext(basename)[0])
url = f'{codelist_reference_url}#{anchor}'
# XXX: Hardcoding.
elif basename == 'statistic.csv':
url = url_for('extension_codelists', lang=lang, identifier='bids', version='master', _anchor=basename)
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 bd64af9

Please sign in to comment.