From fb2e607af100a6e389d3c451bfb0396a8880b9b9 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 1 Feb 2024 20:11:22 -0500 Subject: [PATCH] fix(bible): hopefully f ixed translate_book_name --- bible/bible.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bible/bible.py b/bible/bible.py index b4c8512..519a45c 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -36,10 +36,9 @@ class Bible(commands.Cog): async def translate_book_name(self, bible_id: str, book_name: str) -> str: """Translate a book name to a book ID.""" - book_name_list = book_name.split() - for w in book_name_list: - book_name_list.remove(w) - book_name_list.append(w.lower() if w.lower() == "of" else w.title()) + book_name_list = [ + w.lower() if w.lower() == "of" else w.title() for w in book_name.split() + ] book_name = " ".join(book_name_list) books = await self._get_books(bible_id) for book in books: