Skip to content

Commit

Permalink
Merge pull request #56 from NandaScott/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
NandaScott authored Feb 7, 2021
2 parents 2c09d66 + a0d1d52 commit 7c190f7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 16 deletions.
41 changes: 28 additions & 13 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,76 @@
# Changelog

## 1.8.1

Changes

- Added support for `modal_dfc` to `image_uris()`.

## 1.8.0

Changes

- CI tests have now been added
- Bulk data uri method has been updated, with a deprecation warning for the previous method.
- `preview()` method has been added to all card methods.
- Tests have been updated to reflect new changes.

## 1.7.1

New stuff

- Added image uri compatability for adventure cards
- Custom Scryfall based errors

## 1.7.0

Changes

- Added the following methods for card objects
- `tcgplayer_id`
- `frame_effect`
- `games`
- `promo`
- `released_at`
- `tcgplayer_id`
- `frame_effect`
- `games`
- `promo`
- `released_at`
- Removed the following methods for card objects
- `timeshifted`
- `colorshifted`
- `futureshifted`
- `timeshifted`
- `colorshifted`
- `futureshifted`
- Renamed the following methods for card objects
- `currency` is now `prices`

- `currency` is now `prices`

- Created new endpoint object `TCGPlayerId()`

## 1.6.2

Changes

- You can now pass arguments into `card.image_uris` to specify a single uri.

## 1.6.1

Bugfixes

- Forgot to add bulk_data subpackage to Scrython, fixing import issues.

## 1.6.0

New stuff

- Artist names have been added to `catalog`.
- Multiple new functions have been added to `Cards`, `Symbology`.
- Added the `bulk-data` endpoint to Scrython.
- Added the Arena ID endpoint to Scrython.
- Added the following classes:
cards.ArenaId
catalog.ArtistNames
bulk_data.BulkData
cards.ArenaId
catalog.ArtistNames
bulk_data.BulkData
- You can now properly `*` import Scrython.
- Created unit tests for all classes.

Changes

- Scrython has been changed to use spaces rather than tabs.
- Multiple functions have had their names updated to properly reflect the new key names.
- Some functions have been deleted entirely.
Expand All @@ -72,7 +87,7 @@ New stuff
- Arena IDs are now accessible from all `cards` objects with `arena_id()`.
- The `lang` attribute is now accessible from all `cards` objects with `lang()`
- `printed_name()`, `printed_type_line()`, `printed_text()` have been added to all `card`
objects.
objects.
- `lang` optional argument has now been added to `Collector()` object. Defaults to `en`

Changes
Expand Down
5 changes: 3 additions & 2 deletions scrython/cards/cards_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def image_uris(self, index=0, image_type=None):
'emblem': lambda num: self.scryfallJson['image_uris'],
'augment': lambda num: self.scryfallJson['image_uris'],
'host': lambda num: self.scryfallJson['image_uris'],
'adventure': lambda num: self.scryfallJson['image_uris']
'adventure': lambda num: self.scryfallJson['image_uris'],
'modal_dfc': lambda num: self.scryfallJson['card_faces'][num]['image_uris']
}

image_types = {
Expand Down Expand Up @@ -747,4 +748,4 @@ def preview(self, key=None):
if key in self.scryfallJson['preview']:
return self.scryfallJson['preview'][key]

return self.scryfallJson['preview']
return self.scryfallJson['preview']
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.0',
version='1.8.1',
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

0 comments on commit 7c190f7

Please sign in to comment.