feat: add catalog
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user