Skip to content

Commit

Permalink
fix: correct the missing unit on image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kellya committed Mar 5, 2022
1 parent 89cb55c commit 1285de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def weather_handler(self, evt: MessageEvent, location=None) -> None:
await evt.respond(message)
if self.config["show_image"]:
wttr_url = "http://wttr.in"
wttr = URL(f"{wttr_url}/{location}.png")
wttr = URL(f"{wttr_url}/{location}.png?{units}")
resp = await self.http.get(wttr)
if resp.status == 200:
data = await resp.read()
Expand Down

0 comments on commit 1285de4

Please sign in to comment.