don't remove the ? from image urls

This commit is contained in:
ebbit1q 2022-02-09 18:29:28 +01:00
parent e9d8f09136
commit c4764f3c17
2 changed files with 18 additions and 19 deletions

34
.gitignore vendored
View File

@ -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
@ -83,10 +83,10 @@ celerybeat-schedule
.env
# virtualenv
venv/
ENV/
bin/
include/
venv
ENV
bin
include
pyvenv.cfg
# Spyder project settings

View File

@ -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 = {