fix(bible): added debug line

This commit is contained in:
Seaswimmer 2024-02-01 18:05:23 -05:00
parent c196cca6c2
commit 9e8c5239fd
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -6,6 +6,7 @@
# |_____/ \___|\__,_|___/ \_/\_/ |_|_| |_| |_|_| |_| |_|\___|_| # |_____/ \___|\__,_|___/ \_/\_/ |_|_| |_| |_|_| |_| |_|\___|_|
import aiohttp import aiohttp
import json
import logging import logging
from redbot.core import commands, Config from redbot.core import commands, Config
@ -41,6 +42,7 @@ class Bible(commands.Cog):
headers = await self.bot.get_shared_api_tokens("api.bible") headers = await self.bot.get_shared_api_tokens("api.bible")
async with self.session.get(url, headers=headers) as response: async with self.session.get(url, headers=headers) as response:
data = await response.json() data = await response.json()
self.logger.debug(json.dumps(data))
return data["data"] return data["data"]
async def _get_books(self, bible_id: str) -> dict: async def _get_books(self, bible_id: str) -> dict: