Skip to content

Commit

Permalink
add another sort to be safe
Browse files Browse the repository at this point in the history
  • Loading branch information
docNord committed Apr 26, 2024
1 parent ca348b0 commit f1eb0ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/smhi/metobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def __init__(
super().__init__()

if period == "not-set":
periods_in_station = sorted(periods_in_station, key=lambda x: x.key)
period = periods_in_station.data[0]

if data_type != "json":
Expand Down

0 comments on commit f1eb0ca

Please sign in to comment.