diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-02-11 17:07:42 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-02-11 17:08:21 +0100 |
| commit | f977f0e3ec27cf0b26e4c96bebdfec2073c59c5d (patch) | |
| tree | 82727d110389b4f3a3817f68ebb70dfc698f6a14 /src/xunta_fares | |
| parent | 51c5b376f9b6ad3ec05da6f8933c5b6a46c29d60 (diff) | |
Update Xunta fares to 2026 (long overdue)
Diffstat (limited to 'src/xunta_fares')
| -rw-r--r-- | src/xunta_fares/main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xunta_fares/main.py b/src/xunta_fares/main.py index 4e97085..d55cb61 100644 --- a/src/xunta_fares/main.py +++ b/src/xunta_fares/main.py @@ -21,11 +21,11 @@ def download_municipality_list() -> None: def download_fare_data() -> None: - resp = requests.get('https://www.bus.gal/sites/w_tpgal/files/faq/2025/06/202507-12._calculadora_tarifas_ptpg_2025_descuentos_cas.xlsx') + resp = requests.get('https://www.bus.gal/sites/w_tpgal/files/faq/2026/01/202601._calculadora_tarifas_ptpg_2026_descuentos_cas.xlsx') if resp.status_code != 200: raise Exception(f"Failed to download file: {resp.status_code}") content_bytes = BytesIO(resp.content) - return pd.read_excel(content_bytes, sheet_name='PTPG_Tarifas_2025') + return pd.read_excel(content_bytes, sheet_name='PTPG_Tarifas_2026') GALICIA_CCAA = '12' @@ -92,4 +92,4 @@ if __name__ == "__main__": fare_data_df['efectivo'] = fare_data_df['efectivo'].round(2) fare_data_df['tpg'] = fare_data_df['tpg'].round(2) - fare_data_df.to_csv('xunta_fares_galicia_2025.csv', index=False) + fare_data_df.to_csv('xunta_fares.csv', index=False) |
