From 4536b9fea32cd42a3feff93e30c89adc1d1036a0 Mon Sep 17 00:00:00 2001 From: LDericher <40151420+ldericher@users.noreply.github.com> Date: Mon, 18 Jul 2022 14:13:18 +0000 Subject: [PATCH] minor fixes --- fftcgtool/opus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fftcgtool/opus.py b/fftcgtool/opus.py index ac09419..3e952a8 100644 --- a/fftcgtool/opus.py +++ b/fftcgtool/opus.py @@ -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, }