feat: add catalog

This commit is contained in:
2024-08-16 00:59:56 +03:00
parent aae8bc8649
commit b3043c3c8c
11 changed files with 91 additions and 22 deletions

View File

@@ -7,6 +7,7 @@ from aiocache import cached
from bs4 import BeautifulSoup
from gallery.sketch.weather.api import WeatherApi
from gallery.sketch.weather.catalog import LocationId
from gallery.sketch.weather.model import WeatherResponse, WeatherValue
from . import datehelp
@@ -81,8 +82,8 @@ class GismeteoApi(WeatherApi):
async def get_locations(self) -> list[str]:
return [
"orel-4432",
"zmiyevka-184640",
LocationId.OREL,
LocationId.ZMIYEVKA,
]
@cached(ttl=CACHE_TTL)