syntax errors

This commit is contained in:
Remy Moll 2020-12-10 11:22:37 +01:00
parent af839dd842
commit 60cba691ca

View File

@ -28,7 +28,7 @@ class ClockWrapper(wrapper.Wrapper):
# fetch new weather every 3 hours (hard coded) # fetch new weather every 3 hours (hard coded)
prev_weather_time = datetime.datetime.now() prev_weather_time = datetime.datetime.now()
weather = self.others[0].bot_show_weather("zurich") 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 (":","") 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 # current weather situation (icon): we pick the first line, remove the start string, remove :: indicating an emoji