mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-03-21 09:44:53 -05:00
don't remove the ? from image urls
This commit is contained in:
parent
e9d8f09136
commit
c4764f3c17
34
.gitignore
vendored
34
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user