fix(bible): fixed translate_book_name being case sensitive
This commit is contained in:
parent
ad7616bef6
commit
88aad510b9
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ class Bible(commands.Cog):
|
||||||
book_name_list = book_name.split()
|
book_name_list = book_name.split()
|
||||||
for w in book_name_list:
|
for w in book_name_list:
|
||||||
book_name_list.remove(w)
|
book_name_list.remove(w)
|
||||||
book_name_list.append(w if w.lower() == "of" else w.title())
|
book_name_list.append(w.lower() if w.lower() == "of" else w.title())
|
||||||
|
book_name = " ".join(book_name_list)
|
||||||
books = await self._get_books(bible_id)
|
books = await self._get_books(bible_id)
|
||||||
for book in books:
|
for book in books:
|
||||||
if book_name in (book["abbreviation"], book["name"]):
|
if book_name in (book["abbreviation"], book["name"]):
|
||||||
|
|
Loading…
Reference in a new issue