diff --git a/bot.py b/bot.py index 1479464..668e114 100644 --- a/bot.py +++ b/bot.py @@ -157,7 +157,7 @@ async def act(message: types.Message): @dp.message_handler(commands=['weather']) -async def storm(message: types.Message): +async def weather_command(message: types.Message): text = message.text.split() try: day = int(text[1]) diff --git a/info.py b/info.py index 2c2762e..94fdb02 100644 --- a/info.py +++ b/info.py @@ -22,7 +22,7 @@ def act(): acta[acta.index(lst)] = [config.CITY[lst[0]], int(lst[1].split("-")[1].split()[0])] return sorted(acta), count - except Exception as e: + except Exception: return [], "" @@ -57,7 +57,7 @@ def weather(moment): dire = soup.find_all("div", class_="direction") prec = soup.find_all("div", class_="item-unit") - k, s, weather = 0, 0, {} + weather = {} for i in range(8): par = wind[i].get_text().split()[0].split('-')