remove alru_cache
This commit is contained in:
+2
-2
@@ -1,11 +1,11 @@
|
||||
from fastapi import APIRouter
|
||||
import aiofiles
|
||||
import json
|
||||
from async_lru import alru_cache
|
||||
# from async_lru import alru_cache
|
||||
|
||||
router = APIRouter(prefix='/api/v1', tags=['tariffs'])
|
||||
|
||||
@alru_cache(maxsize=1, ttl=86400)
|
||||
# @alru_cache(maxsize=1, ttl=86400)
|
||||
async def get_tariffs_from_file():
|
||||
async with aiofiles.open('data/tariffs.json', 'r', encoding='utf-8') as f:
|
||||
content = await f.read()
|
||||
|
||||
Reference in New Issue
Block a user