Skip to content

Commit

Permalink
Refactor public-holidays-fr.json to remove outdated holiday dates for…
Browse files Browse the repository at this point in the history
… 2026
  • Loading branch information
nicolasstrands committed Oct 18, 2024
1 parent 7ca6231 commit 803819d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 56 deletions.
56 changes: 0 additions & 56 deletions data/public-holidays-fr.json

This file was deleted.

7 changes: 7 additions & 0 deletions fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ def validate_and_load_json(json_str):
# Process each link (PDF or webpage)
def process_link(country, link):
for year, link_info in link.items():
if country == "mu":
country = "Mauritius"
elif country == "fr":
country = "France"
elif country == "sa":
country = "South Africa"

print(f"Processing link for {country} in {year}...")
url = link_info["url"]
link_type = link_info["type"]
Expand Down

0 comments on commit 803819d

Please sign in to comment.