Skip to content

Commit

Permalink
Allow floats for rh in m2
Browse files Browse the repository at this point in the history
  • Loading branch information
conbrad committed Aug 1, 2023
1 parent 612a59e commit aed895c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/app/schemas/morecast_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class MoreCastForecastInput(BaseModel):
station_code: int
for_date: int
temp: float
rh: int
rh: float
precip: float
wind_speed: float
wind_direction: int | None = None
Expand Down
2 changes: 1 addition & 1 deletion api/app/tests/morecast_v2/test_morecast_v2_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
decode_fn = "jwt.decode"

forecast = MoreCastForecastRequest(token="testToken", forecasts=[MoreCastForecastInput(
station_code=1, for_date=1, temp=10.0, rh=40, precip=70.2, wind_speed=20.3, wind_direction=40)])
station_code=1, for_date=1, temp=10.0, rh=40.1, precip=70.2, wind_speed=20.3, wind_direction=40)])

stations = StationsRequest(stations=[1, 2])

Expand Down

0 comments on commit aed895c

Please sign in to comment.