fix(bible): go back to using title()
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 17s
Actions / Build Documentation (MkDocs) (push) Successful in 12s

This commit is contained in:
Seaswimmer 2024-02-01 20:06:21 -05:00
parent 8883f68cf0
commit ad7616bef6
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -39,7 +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)
book_name_list.append(w if w.lower() == "of" else w.capitalize()) book_name_list.append(w if w.lower() == "of" else w.title())
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"]):