forked from cswimr/SeaCogs
fix(bible): pylint fixes
This commit is contained in:
parent
cf5e146f88
commit
067ded28f3
2 changed files with 13 additions and 2 deletions
|
@ -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"],
|
||||
|
|
|
@ -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})"
|
||||
|
|
Loading…
Reference in a new issue