Skip to content

Commit

Permalink
Correct syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Perseudonymous committed Nov 16, 2024
1 parent 943f98b commit f237fcb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/datapoint/Forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,11 @@ def _build_timesteps_from_daily(self, forecasts, parameters):
# onwards. Using this if statement to remember to remove the
# explicit strptime in the future, and it annoyed me that
# fromisoformat couldn't handle all iso-formatted datetimes.
night_step = datetime.datetime.strptime(
forecast["time"], "%Y-%m-%dT%H:%M%z"
)
night_step = {
"time": datetime.datetime.strptime(
forecast["time"], "%Y-%m-%dT%H:%M%z"
)
}
day_step = {
"time": datetime.datetime.strptime(
forecast["time"], "%Y-%m-%dT%H:%M%z"
Expand Down

0 comments on commit f237fcb

Please sign in to comment.