Fix get_all_accounts() URL (remove double /api)

This commit is contained in:
padreug 2025-11-11 01:33:18 +01:00
parent a210d7433a
commit c70695f330

View file

@ -836,7 +836,7 @@ class FavaClient:
try: try:
# Use Fava's /api/accounts endpoint # Use Fava's /api/accounts endpoint
async with httpx.AsyncClient(timeout=self.timeout) as client: async with httpx.AsyncClient(timeout=self.timeout) as client:
response = await client.get(f"{self.base_url}/api/accounts") response = await client.get(f"{self.base_url}/accounts")
response.raise_for_status() response.raise_for_status()
accounts_data = response.json() accounts_data = response.json()