From 60cba691ca2ae9427543f3686f6279fb2cf539c7 Mon Sep 17 00:00:00 2001 From: Remy Moll <mollator2@gmail.com> Date: Thu, 10 Dec 2020 11:22:37 +0100 Subject: [PATCH] syntax errors --- clock_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clock_wrapper.py b/clock_wrapper.py index b206123..af81e02 100644 --- a/clock_wrapper.py +++ b/clock_wrapper.py @@ -28,7 +28,7 @@ class ClockWrapper(wrapper.Wrapper): # fetch new weather every 3 hours (hard coded) prev_weather_time = datetime.datetime.now() weather = self.others[0].bot_show_weather("zurich") - if not (sad in weather): + if not (":sad:" in weather): l1 = weather[weather.find("</b>")+5:weather.find("\n")].replace (":","") # current weather situation (icon): we pick the first line, remove the start string, remove :: indicating an emoji