From b314c70da7a1dc00cc9ac4989cb58eecb6755d53 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Tue, 25 Jul 2017 18:02:15 -0700 Subject: [PATCH] weather bot: Amend temperature formatting. --- zulip_bots/zulip_bots/bots/weather/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/bots/weather/weather.py b/zulip_bots/zulip_bots/bots/weather/weather.py index d641eb9..c0449f0 100644 --- a/zulip_bots/zulip_bots/bots/weather/weather.py +++ b/zulip_bots/zulip_bots/bots/weather/weather.py @@ -6,7 +6,7 @@ import json class WeatherHandler(object): def initialize(self, bot_handler): self.api_key = bot_handler.get_config_info('weather', 'weather-config')['key'] - self.response_pattern = 'Weather in {}, {}:\n{} F / {} C\n{}' + self.response_pattern = 'Weather in {}, {}:\n{:.2f} F / {:.2f} C\n{}' def usage(self): return '''