From 9f5c43ce92729f1a1608d98e006f6f7820b5f89e Mon Sep 17 00:00:00 2001 From: shmyga Date: Fri, 28 Aug 2026 10:13:05 +0300 Subject: [PATCH] fix(yandexweather): fix yandexweather parser --- gallery/painting/yandexweather/parser.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gallery/painting/yandexweather/parser.py b/gallery/painting/yandexweather/parser.py index 15dd479..1f98a4b 100644 --- a/gallery/painting/yandexweather/parser.py +++ b/gallery/painting/yandexweather/parser.py @@ -37,11 +37,13 @@ def parse_sky(sky: str) -> Sky: elif sky == "пасмурно": cloudness = Cloudness.MAINLY_CLOUDY elif sky == "небольшой дождь": - precipitation = Precipitation.RAIN - elif sky == "дождь": precipitation = Precipitation.SMALL_RAIN + elif sky == "дождь": + precipitation = Precipitation.RAIN + elif sky == "ливень": + precipitation = Precipitation.SHOWER else: - logger.warning("unknown sky value: %s:", sky) + logger.warning("unknown sky value: %s", sky) return Sky( cloudness=cloudness, precipitation=precipitation,