fix(bible): adding debugging code
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 16s
Actions / Build Documentation (MkDocs) (push) Successful in 11s

This commit is contained in:
Seaswimmer 2024-02-01 18:41:45 -05:00
parent 2f945af866
commit 95cd7fdcb5
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -57,6 +57,8 @@ class Bible(commands.Cog):
headers = await self.bot.get_shared_api_tokens("api.bible")
async with self.session.get(url, headers=headers) as response:
data = await response.json()
self.logger.debug(bible_id)
self.logger.debug(json.dumps(data))
return data["data"]
async def _get_chapters(self, bible_id: str, book_id: str) -> dict:
@ -65,6 +67,8 @@ class Bible(commands.Cog):
headers = await self.bot.get_shared_api_tokens("api.bible")
async with self.session.get(url, headers=headers) as response:
data = await response.json()
self.logger.debug(book_id)
self.logger.debug(json.dumps(data))
return data["data"]
async def _get_verses(self, bible_id: str, book_id: str, chapter: int) -> dict:
@ -73,6 +77,8 @@ class Bible(commands.Cog):
headers = await self.bot.get_shared_api_tokens("api.bible")
async with self.session.get(url, headers=headers) as response:
data = await response.json()
self.logger.debug(chapter)
self.logger.debug(json.dumps(data))
return data["data"]
@commands.group(autohelp=True)