From 28a5170be0fd4ed40618568e0512b26fa05bf5f7 Mon Sep 17 00:00:00 2001 From: Egor Deev Date: Fri, 2 Oct 2026 23:36:49 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=B8?= =?UTF-8?q?=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BF=D0=BE=20ruff:=20=D0=B4=D1=83=D0=B1=D0=BB=D0=B8=D1=80?= =?UTF-8?q?=D1=83=D1=8E=D1=89=D0=B5=D0=B5=D1=81=D1=8F=20=D0=B8=D0=BC=D1=8F?= =?UTF-8?q?=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=87=D0=B8=D0=BA?= =?UTF-8?q?=D0=B0=20/weather,=20=D0=BD=D0=B5=D0=B8=D1=81=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C=D0=B7=D1=83=D0=B5=D0=BC=D1=8B=D0=B5=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 2 +- info.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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('-')