Skip to content

Commit

Permalink
don't remove the ? from image urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ebbit1q committed Feb 9, 2022
1 parent e9d8f09 commit c4764f3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
34 changes: 17 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ __pycache__/

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
env
build
develop-eggs
dist
downloads
eggs
.eggs
lib
lib64
parts
sdist
var
*.egg-info
.installed.cfg
*.egg

Expand Down Expand Up @@ -83,10 +83,10 @@ celerybeat-schedule
.env

# virtualenv
venv/
ENV/
bin/
include/
venv
ENV
bin
include
pyvenv.cfg

# Spyder project settings
Expand Down
3 changes: 1 addition & 2 deletions magic_spoiler/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,9 @@ def scryfall2mtgjson(scryfall_cards: List[Dict[str, Any]]) -> List[Dict[str, Any
sf_card["card_faces"][0]
.get("image_uris", {})
.get("normal", "")
.rsplit("?", 1)[0]
)
else:
image = sf_card.get("image_uris", {}).get("normal", "").rsplit("?", 1)[0]
image = sf_card.get("image_uris", {}).get("normal", "")

try:
trice_card = {
Expand Down

0 comments on commit c4764f3

Please sign in to comment.