mirror of
https://github.com/ldericher/fftcgtool
synced 2025-01-15 15:02:59 +00:00
minor fixes
This commit is contained in:
parent
5c81c9eb65
commit
4536b9fea3
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue