forked from cswimr/SeaCogs
feat(bible): added description and descriptionLocal to the version model
This commit is contained in:
parent
ad2cf39e3e
commit
f615e9f61d
2 changed files with 7 additions and 1 deletions
|
@ -70,6 +70,8 @@ class Bible(commands.Cog):
|
|||
data["data"]["language"]["name"],
|
||||
data["data"]["abbreviationLocal"],
|
||||
data["data"]["language"]["nameLocal"],
|
||||
data["data"]["description"],
|
||||
data["data"]["descriptionLocal"],
|
||||
data["data"]["copyright"],
|
||||
)
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ class Version:
|
|||
language,
|
||||
abbreviationLocal,
|
||||
languageLocal,
|
||||
description,
|
||||
descriptionLocal,
|
||||
version_copyright,
|
||||
):
|
||||
self.bible_id = bible_id
|
||||
|
@ -13,10 +15,12 @@ class Version:
|
|||
self.language = language
|
||||
self.abbreviationLocal = abbreviationLocal
|
||||
self.languageLocal = languageLocal
|
||||
self.description = description
|
||||
self.descriptionLocal = descriptionLocal
|
||||
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}")'
|
||||
return f'bible.models.Version("{self.bible_id}", "{self.abbreviation}", "{self.language}", "{self.abbreviationLocal}", "{self.languageLocal}", "{self.description}", "{self.descriptionLocal}", "{self.copyright}")'
|
||||
|
|
Loading…
Reference in a new issue