From 5782c11e986c819e16e28e633c4aad496958b32a Mon Sep 17 00:00:00 2001 From: austnv Date: Sun, 14 Jun 2026 23:27:16 +0300 Subject: [PATCH] bud: namepsace | rename func --- routers/tariffs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/tariffs.py b/routers/tariffs.py index 4c1cbf8..a297066 100644 --- a/routers/tariffs.py +++ b/routers/tariffs.py @@ -7,11 +7,11 @@ from async_lru import alru_cache router = APIRouter(prefix='/api/v1', tags=['tariffs']) @alru_cache(maxsize=1, ttl=86400) -async def get_tariffs(): +async def get_tariffs_from_file(): async with aiofiles.open('data/tariffs.json', 'r', encoding='utf-8') as f: content = await f.read() return await asyncio.to_thread(json.loads(content)) @router.get('/tariffs') async def get_tariffs(): - return await get_tariffs() \ No newline at end of file + return await get_tariffs_from_file() \ No newline at end of file