corrected link for currency converter

This commit is contained in:
esef committed 2026-06-29 15:42:00 +03:00
1 parent 8c36a139a8
commit f05a4bbe5a
1 file changed
+1 -1
+1 -1
View File
@@ -37,7 +37,7 @@ class CurrencyConverter(commands.Cog):
cached = _RATE_CACHE.get(base) cached = _RATE_CACHE.get(base)
if cached and now - cached[0] < _CACHE_TTL: if cached and now - cached[0] < _CACHE_TTL:
return cached[1] return cached[1]
url = f"https://frankfurter.app/latest?from={base}" url = f"https://api.frankfurter.app/latest?base={base}"
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
async with session.get(url) as resp: async with session.get(url) as resp:
if resp.status != 200: if resp.status != 200: