get_averages_year() in src/hpc_eff/utils/energy_price.py scrapes the yearly price baseline from a hardcoded URL:
url = 'https://spotovaelektrina.cz/historicke-ceny/2025/1'
The year 2025 is frozen in the code.
Proposed fix
- Build the URL from the current date instead of a constant: fetch
/{current_year}/1.
get_averages_year()insrc/hpc_eff/utils/energy_price.pyscrapes the yearly price baseline from a hardcoded URL:The year
2025is frozen in the code.Proposed fix
/{current_year}/1.