forked from blizzthewolf/SeaCogs
fix(bible): fixed query
This commit is contained in:
parent
894b1a3714
commit
660f561109
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class Bible(commands.Cog):
|
||||||
"""Get a Bible passage from the API.bible API."""
|
"""Get a Bible passage from the API.bible API."""
|
||||||
url = f"https://api.scripture.api.bible/v1/bibles/{bible_id}/passages/{passage_id}"
|
url = f"https://api.scripture.api.bible/v1/bibles/{bible_id}/passages/{passage_id}"
|
||||||
headers = await self.bot.get_shared_api_tokens("api.bible")
|
headers = await self.bot.get_shared_api_tokens("api.bible")
|
||||||
query = {"content_type": "text", "include-chapter-numbers": False, "include-verse-numbers": False, "include-verse-spans": False}
|
query = {"content_type": "text", "include-chapter-numbers": 'false', "include-verse-numbers": 'false', "include-verse-spans": 'false'}
|
||||||
async with self.session.get(url, headers=headers, params=query) as response:
|
async with self.session.get(url, headers=headers, params=query) as response:
|
||||||
data = await response.json()
|
data = await response.json()
|
||||||
return data["data"]
|
return data["data"]
|
||||||
|
|
Loading…
Reference in a new issue