Skip to content

Commit

Permalink
feat: identify also the modern images
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Nov 6, 2023
1 parent 4830935 commit 44e0b57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def process_results(input):
id = item.get('weather', {}).get('id', '')
item['weather']['icon_name'] = f'{id}.png'
item['weather']['full_path'] = f"https://api.euskadi.eus/{item['weather']['path']}"
item['weather']['icon_name_modern'] = f'i{id}d.svg'
item['weather']['full_path_modern'] = f'https://www.euskalmet.euskadi.eus/meteoassets/icons/euskalmet/i{id}d.svg'
trendsByDate.append(item)
output['trendsByDate'] = trendsByDate

Expand Down

0 comments on commit 44e0b57

Please sign in to comment.