Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

+ Fix bug in API request when twice-daily forecast was used.

## [0.12.0] - 2024-11-27

+ Use one timestep per day for daily forecasts.
Expand Down
6 changes: 5 additions & 1 deletion src/datapoint/Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ def __call_api(self, latitude, longitude, frequency):
"accept": "application/json",
"apikey": self.api_key,
}
request_url = API_URL + frequency

if frequency == "twice-daily":
request_url = API_URL + "daily"
else:
request_url = API_URL + frequency

# Add a timeout to the request.
# The value of 1 second is based on attempting 100 connections to
Expand Down
Loading