From 005d0c1c8b16a9c36db4fb5294ff2377c73717c5 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 1 Feb 2024 18:58:52 -0500 Subject: [PATCH] fix(bible): pylint fixes --- bible/bible.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bible/bible.py b/bible/bible.py index 5363827..102e5e8 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -5,7 +5,6 @@ # ____) | __/ (_| \__ \\ V V /| | | | | | | | | | | | __/ | # |_____/ \___|\__,_|___/ \_/\_/ |_|_| |_| |_|_| |_| |_|\___|_| -import json import logging import random @@ -37,7 +36,7 @@ class Bible(commands.Cog): book_name = book_name.title() books = await self._get_books(bible_id) for book in books: - if book_name == book["abbreviation"] or book_name == book["name"]: + if book_name in (book["abbreviation"], book["name"]): return book["id"] raise ValueError(f"Book {book_name} not found.")