Skip to content

Commit 60297b0

Browse files
committed
fix: past days may be greater than 2
1 parent 4768401 commit 60297b0

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/src/main/kotlin/com/openmeteo/api/airquality/AirQualityEndpoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AirQualityEndpoint(
3939
"domains" to domains,
4040
"timeformat" to TimeFormat.unixtime,
4141
"timezone" to timeZone,
42-
"past_days" to pastDays?.takeIf { it in 0..2 },
42+
"past_days" to pastDays,
4343
"start_date" to startDate,
4444
"end_date" to endDate,
4545
)

lib/src/main/kotlin/com/openmeteo/api/ecmwf/EcmwfEndpoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class EcmwfEndpoint(
3131
"windspeed_unit" to windSpeedUnit,
3232
"precipitation_unit" to precipitationUnit?.param(),
3333
"timeformat" to TimeFormat.unixtime,
34-
"past_days" to pastDays?.takeIf { it in 0..2 },
34+
"past_days" to pastDays,
3535
"start_date" to startDate,
3636
"end_date" to endDate,
3737
)

lib/src/main/kotlin/com/openmeteo/api/forecast/ForecastEndpoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ForecastEndpoint(
3939
"precipitation_unit" to precipitationUnit?.param(),
4040
"timeformat" to TimeFormat.unixtime,
4141
"timezone" to (timeZone ?: daily?.let { "auto" }),
42-
"past_days" to pastDays?.takeIf { it in 0..2 },
42+
"past_days" to pastDays,
4343
"start_date" to startDate,
4444
"end_date" to endDate,
4545
)

lib/src/main/kotlin/com/openmeteo/api/marine/MarineEndpoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MarineEndpoint(
3232
"daily" to daily?.joinToString(","),
3333
"timeformat" to TimeFormat.unixtime,
3434
"timezone" to (timeZone ?: daily?.let { "auto" }),
35-
"past_days" to pastDays?.takeIf { it in 0..2 },
35+
"past_days" to pastDays,
3636
"start_date" to startDate,
3737
"end_date" to endDate,
3838
)

0 commit comments

Comments
 (0)