fix(bible): hopefully made translate_book_name case insensitive
This commit is contained in:
parent
c37a58d687
commit
6df92da12f
1 changed files with 1 additions and 3 deletions
|
@ -39,9 +39,7 @@ 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)
|
||||||
if not w.lower() == "of":
|
book_name_list.append(w if w.lower() == "of" else w.capitalize())
|
||||||
w = w.capitalize()
|
|
||||||
book_name_list.append(w)
|
|
||||||
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