From f87be092a542e6c812ce605ad864279d5aecce80 Mon Sep 17 00:00:00 2001 From: monosans Date: Fri, 6 Oct 2023 10:51:41 +0300 Subject: [PATCH] oops --- api/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core.py b/api/core.py index 94e5e65..4312db9 100644 --- a/api/core.py +++ b/api/core.py @@ -150,7 +150,7 @@ async def get_crypto_price(cryptocurrency: str) -> float: """Gets the price of a cryptocurrency using coinbase's API.""" try: - async with aiofiles.open(os.path.join('cache', 'crypto_prices')) as f: + async with aiofiles.open(os.path.join('cache', 'crypto_prices.json')) as f: content = await f.read() except FileNotFoundError: cache = {}