From b9ca5393c686b282d048066d45dd3bfa9cd0b418 Mon Sep 17 00:00:00 2001 From: Nanda Scott Date: Wed, 13 Jun 2018 13:44:26 -0400 Subject: [PATCH] Added lang attribute --- Changelog.md | 3 ++- scrython/cards/cards_object.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index f9aa4a5..54e06a3 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,7 +4,8 @@ New stuff -- The Arena IDs are now accessible from all `cards` objects with `arena_id()` +- Arena IDs are now accessible from all `cards` objects with `arena_id()`. +- The `lang` attribute is now accessible from all `cards` objects with `lang()` Changes diff --git a/scrython/cards/cards_object.py b/scrython/cards/cards_object.py index 3dcd7cf..ed89905 100644 --- a/scrython/cards/cards_object.py +++ b/scrython/cards/cards_object.py @@ -388,3 +388,8 @@ class CardsObject(object): self._checkForKey('arena_id') return self.scryfallJson['arena_id'] + + def lang(self): + self._checkForKey('lang') + + return self.scryfallJson['lang'] \ No newline at end of file