Skip to content
Snippets Groups Projects
Commit fca4ebdd authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Fix download

parent 3c6297e6
No related branches found
No related tags found
No related merge requests found
......@@ -73,11 +73,10 @@ def download_actual_generation_per_type_daily(
log.info("Download data for %s (%d)", country_code, year)
csv_filepath = target_dir / f"AGPT_{country_code}_{year}.csv"
if not csv_filepath.exists():
df = download_actual_generation_per_type_daily_per_country_year(
client, country_code, year
)
df.to_csv(csv_filepath, date_format="%Y-%m-%d")
df = download_actual_generation_per_type_daily_per_country_year(
client, country_code, year
)
df.to_csv(csv_filepath, date_format="%Y-%m-%d")
log = logging.getLogger(__name__)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment