Skip to content

Commit

Permalink
Fix intentional bug in strang url
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcth committed Mar 31, 2024
1 parent a49cb40 commit a627876
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/smhi/strang.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def __init__(self) -> None:
)
self._point_url: Optional[str] = None
self._multipoint_url: Optional[str] = None
self._available_parameters: defaultdict[int, StrangParameter] = (
STRANG_PARAMETERS
)
self._available_parameters: defaultdict[
int, StrangParameter
] = STRANG_PARAMETERS

@property
def parameters(
Expand Down Expand Up @@ -111,7 +111,7 @@ def get_point(
raw_url = self._point_raw_url
url = self._build_base_point_url(raw_url, strang_parameter, longitude, latitude)
url = self._build_time_point_url(url, time_from, time_to, time_interval)
data, header, status = self._get_and_load_data(url + "1", RequestType["POINT"])
data, header, status = self._get_and_load_data(url, RequestType["POINT"])

return StrangPoint(
parameter_key=strang_parameter.key,
Expand Down

0 comments on commit a627876

Please sign in to comment.