fix(bible): hopefully made translate_book_name case insensitive
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 16s
Actions / Build Documentation (MkDocs) (push) Successful in 12s

This commit is contained in:
Seaswimmer 2024-02-01 19:39:48 -05:00
parent c37a58d687
commit 6df92da12f
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -39,9 +39,7 @@ class Bible(commands.Cog):
book_name_list = book_name.split()
for w in book_name_list:
book_name_list.remove(w)
if not w.lower() == "of":
w = w.capitalize()
book_name_list.append(w)
book_name_list.append(w if w.lower() == "of" else w.capitalize())
books = await self._get_books(bible_id)
for book in books:
if book_name in (book["abbreviation"], book["name"]):