Skip to content

Commit

Permalink
link to unlocode.info
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsdroff committed Dec 12, 2024
1 parent 59f9a7c commit bcce635
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/generate_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ def clean_date(x):
if pd.notna(code) else code
)

country_data["Location"] = country_data["Location"].apply(
lambda code: f'<a href="https://unlocode.info/{code}">{code}</a>'
if pd.notna(code) else code
)



cf.write(country_data.to_html(index=False, escape=False, classes="unlocode-table"))
cf.write(footer_template)

Expand Down

0 comments on commit bcce635

Please sign in to comment.