Skip to content

Commit

Permalink
Merge pull request #63 from NandaScott/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
NandaScott authored Mar 5, 2021
2 parents 7c190f7 + 9454cc5 commit 8610e07
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs/scrython.cards/ArenaId.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,16 @@ The related id of the card art
Returns:
string
```
---
### `image_status()`

```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
```
---
### `image_uris()`
Expand Down
10 changes: 10 additions & 0 deletions docs/scrython.cards/Collector.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,16 @@ The related id of the card art
Returns:
string
```
---
### `image_status()`

```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
```
---
### `image_uris()`
Expand Down
10 changes: 10 additions & 0 deletions docs/scrython.cards/Id.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,16 @@ The related id of the card art
Returns:
string
```
---
### `image_status()`

```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
```
---
### `image_uris()`
Expand Down
10 changes: 10 additions & 0 deletions docs/scrython.cards/Mtgo.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,16 @@ The related id of the card art
Returns:
string
```
---
### `image_status()`

```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
```
---
### `image_uris()`
Expand Down
10 changes: 10 additions & 0 deletions docs/scrython.cards/Multiverse.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,16 @@ The related id of the card art
Returns:
string

```
---
### `image_status()`

```
Provides insight to the status of the images of the card.

Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'

```
---
### `image_uris()`
Expand Down
10 changes: 10 additions & 0 deletions docs/scrython.cards/Named.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,16 @@ The related id of the card art
Returns:
string
```
---
### `image_status()`

```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
```
---
### `image_uris()`
Expand Down
10 changes: 10 additions & 0 deletions docs/scrython.cards/Random.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ The related id of the card art
Returns:
string
```
---
### `image_status()`

```
Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
```
---
### `image_uris()`
Expand Down
10 changes: 10 additions & 0 deletions scrython/cards/cards_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,3 +749,13 @@ def preview(self, key=None):
return self.scryfallJson['preview'][key]

return self.scryfallJson['preview']

def image_status(self):
"""Provides insight to the status of the images of the card.
Returns:
string: An enum of 'missing', 'placeholder', 'lowres', 'highres_scan'
"""
super(CardsObject, self)._checkForKey('image_status')

return self.scryfallJson['image_status']
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='scrython',
packages=['scrython', 'scrython.cards', 'scrython.rulings', 'scrython.catalog', 'scrython.sets', 'scrython.symbology', 'scrython.bulk_data'],
version='1.8.1',
version='1.9.0',
description='A wrapper for using the Scryfall API.',
long_description='https://github.com/NandaScott/Scrython/blob/master/README.md',
url='https://github.com/NandaScott/Scrython',
Expand Down
3 changes: 3 additions & 0 deletions unittests/test_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ def test_preview(self):
self.assertIsInstance(preview_check.preview(), dict)
self.assertIsInstance(preview_check.preview('source'), str)

def test_image_status(self):
self.assertIsInstance(non_online_card.image_status(), str)

class TestAutocomplete(unittest.TestCase):

def test_object(self):
Expand Down

0 comments on commit 8610e07

Please sign in to comment.