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 = {}