Skip to content

Commit

Permalink
fix(desc): merge minutely&hourly text
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Oct 13, 2021
1 parent 71e5704 commit 60abd6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backends/caiyun.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ func (c *CaiyunConfig) Fetch(location string, numdays int) iface.Data {
if err := json.Unmarshal(body, weatherData); err != nil {
panic(err)
}
res.Current.Desc = weatherData.Result.ForecastKeypoint
res.Current.Desc = weatherData.Result.Minutely.Description + "\t" + weatherData.Result.Hourly.Description

res.Current.TempC = func() *float32 {
x := float32(weatherData.Result.Realtime.Temperature)
return &x
Expand Down

0 comments on commit 60abd6e

Please sign in to comment.