Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Aug 15, 2024
1 parent bb6836e commit 2e8058e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/india_api/internal/service/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def format_csv(values: list[PredictedPower]) -> pd.DataFrame:
# combine start and end times
df["Time"] = df["Start Time [IST]"].astype(str) + " - " + df["End Time [IST]"].astype(str)

# drop start, end and Time columns and order
# drop start and end columns and order
df = df.drop(columns=["Start Time [IST]", "End Time [IST]"])
df = df[["Date [IST]", "Time", "PowerKW"]]

Expand Down
2 changes: 1 addition & 1 deletion src/india_api/internal/service/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def get_forecast_da_csv(
tomorrow_ist = df["Date [IST]"].iloc[0]
csv_file_path = f"{region}_{source}_da_{tomorrow_ist}.csv"

description = f"This file is made for {region} for {source} for {tomorrow_ist}, this was made at {now_ist}"
description = f"Forecast for {region} for {source} for {tomorrow_ist}. The Forecast was created at {now_ist}"

output = df.to_csv(index=False)
return StreamingResponse(
Expand Down

0 comments on commit 2e8058e

Please sign in to comment.