1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 15:02:59 +00:00

minor fixes

This commit is contained in:
Jörn-Michael Miehe 2022-07-18 14:13:18 +00:00
parent 5c81c9eb65
commit 4536b9fea3

View file

@ -63,6 +63,7 @@ class Opus(Cards):
params["text"] = ""
# get cards from square api
logger.debug(f"POST params: {params}")
req = requests.post(Opus.__SQUARE_API_URL, json=params)
carddb = CardDB()
cards = (
@ -123,7 +124,7 @@ class Opus(Cards):
filters |= {
# light/darkness elemental deck
"Light-Darkness": lambda card: card.elements == ["Light"] or card.elements == ["Darkness"],
"Light-Darkness": lambda card: card.elements in (["Light"], ["Darkness"]),
# multi element deck
"Multi": lambda card: "Crystal" in card.elements or len(card.elements) > 1,
}