Added support for the image_status field
This commit is contained in:
		
							parent
							
								
									a0d1d5266d
								
							
						
					
					
						commit
						2df2505c8f
					
				| 
						 | 
				
			
			@ -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()`
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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()`
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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()`
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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()`
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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()`
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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()`
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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()`
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -749,3 +749,13 @@ class CardsObject(FoundationObject):
 | 
			
		|||
            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
									
								
								setup.py
								
								
								
								
							
							
						
						
									
										2
									
								
								setup.py
								
								
								
								
							| 
						 | 
				
			
			@ -3,7 +3,7 @@ from setuptools import setup
 | 
			
		|||
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',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -212,6 +212,9 @@ class TestCardObjects(unittest.TestCase):
 | 
			
		|||
        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):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue