typos
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Jeffrey Paul 2020-09-08 22:06:01 -07:00
부모 950467bd2e
커밋 c3d0451d62
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@ -47,7 +47,7 @@ func (b *Bot) HandleAirQualityRequest(channelid string, postid string, message s
zip4 := matches[1]
apikey := os.Getenv("AIRNOW_API_KEY")
url := fmt.Sprintf("http://www.airnowapi.org/aq/observation/zipCode/current/?format=application/json&zipCode=%d&distance=25&API_KEY=%s", zip4, apikey)
url := fmt.Sprintf("http://www.airnowapi.org/aq/observation/zipCode/current/?format=application/json&zipCode=%s&distance=25&API_KEY=%s", zip4, apikey)
log.Info().Msgf("calculated url: `%s`", url)
@ -71,7 +71,7 @@ func (b *Bot) HandleAirQualityRequest(channelid string, postid string, message s
var parsedAQIResponse AQIResponse
log.Info().Msgf("aqi %s: %s", zip, data)
log.Info().Msgf("aqi %s: %s", zip4, data)
err = nil
err = json.Unmarshal([]byte(data), &parsedAQIResponse)
@ -80,5 +80,5 @@ func (b *Bot) HandleAirQualityRequest(channelid string, postid string, message s
b.SendMsgToChannel("error deserializing AQI data", postid, channelid)
return
}
b.SendMsgToChannel(fmt.Sprintf("AQI for `%s`: \n```\n%+v\n```\n", loc, parsedAQIResponse), postid, channelid)
b.SendMsgToChannel(fmt.Sprintf("AQI for `%s`: \n```\n%+v\n```\n", zip4, parsedAQIResponse), postid, channelid)
}