Skip to content

Commit

Permalink
правки
Browse files Browse the repository at this point in the history
  • Loading branch information
HamletSargsyan committed Jun 5, 2024
1 parent 224e0dc commit 2568de9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"python.analysis.autoImportCompletions": true,
"python.analysis.extraPaths": ["src"],
"python.analysis.typeCheckingMode": "basic",
"ruff.enable": true,
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## [3.2.6] - 05.06.2024

### Исправлено
- Баг [#17](https://github.com/HamletSargsyan/livebot/issues/17)

## [3.2.5] - 05.06.2024

Expand Down
24 changes: 16 additions & 8 deletions src/helpers/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,21 @@
}

weather_emojis = {
"1": "🌩️",
"3": "🌦️",
"5": "🌧️",
"6": "❄️",
"7": "🌫️",
"800": "☀️",
"80": "☁️",
"Clear": "☀️",
"Clouds": "☁️",
"Drizzle": "🌦️",
"Rain": "🌧️",
"Thunderstorm": "⛈️",
"Snow": "❄️",
"Mist": "🌫️",
"Smoke": "🌫️",
"Haze": "🌫️",
"Dust": "🌫️",
"Fog": "🌫️",
"Sand": "🌫️",
"Ash": "🌫️",
"Squall": "🌫️",
"Tornado": "🌪️",
}


Expand All @@ -48,7 +56,7 @@ def ru_name(self):

@property
def emoji(self):
return weather_emojis.get(str(self.id), "❓")
return weather_emojis.get(str(self.main), "❓")


class MainInfo:
Expand Down

0 comments on commit 2568de9

Please sign in to comment.