From f615e9f61d1f50edee4fe83b72efec9d8551ca9b Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 2 Feb 2024 13:09:46 -0500 Subject: [PATCH] feat(bible): added description and descriptionLocal to the version model --- bible/bible.py | 2 ++ bible/models.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bible/bible.py b/bible/bible.py index 00824ae..cb12526 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -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"], ) diff --git a/bible/models.py b/bible/models.py index 4cbe3d4..97500be 100644 --- a/bible/models.py +++ b/bible/models.py @@ -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}")'