feat(bible): added description and descriptionLocal to the version model

This commit is contained in:
Seaswimmer 2024-02-02 13:09:46 -05:00
parent ad2cf39e3e
commit f615e9f61d
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063
2 changed files with 7 additions and 1 deletions

View file

@ -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"],
)

View file

@ -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}")'