From 067ded28f3ca95e4274e5e921b0364e65a08185b Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 2 Feb 2024 12:55:19 -0500 Subject: [PATCH] fix(bible): pylint fixes --- bible/bible.py | 1 + bible/models.py | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bible/bible.py b/bible/bible.py index 6f42b8b..00824ae 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -65,6 +65,7 @@ class Bible(commands.Cog): if response.status == 503: raise bible.errors.ServiceUnavailable() return Version( + bible_id, data["data"]["abbreviation"], data["data"]["language"]["name"], data["data"]["abbreviationLocal"], diff --git a/bible/models.py b/bible/models.py index ba837ec..5111eb0 100644 --- a/bible/models.py +++ b/bible/models.py @@ -1,12 +1,22 @@ class Version: def __init__( - self, abbreviation, language, abbreviationLocal, languageLocal, copyright + self, + bible_id, + abbreviation, + language, + abbreviationLocal, + languageLocal, + version_copyright, ): + self.bible_id = bible_id self.abbreviation = abbreviation self.language = language self.abbreviationLocal = abbreviationLocal self.languageLocal = languageLocal - self.copyright = copyright + self.copyright = version_copyright def __str__(self): return self.abbreviationLocal + + def __repr__(self): + return f"bible.models.Version({self.bible_id}, {self.abbreviation}, {self.language}, {self.abbreviationLocal}, {self.languageLocal}, {self.copyright})"