From 60178329edb6e09c930ce29b6d3da59a480d2460 Mon Sep 17 00:00:00 2001 From: LDericher <40151420+ldericher@users.noreply.github.com> Date: Fri, 3 Sep 2021 11:51:43 +0200 Subject: [PATCH] minor fixes --- fftcg/cards.py | 5 ++++- fftcg/opus.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fftcg/cards.py b/fftcg/cards.py index 5a8f437..bf55c2f 100644 --- a/fftcg/cards.py +++ b/fftcg/cards.py @@ -11,9 +11,12 @@ class Cards(list[Card]): super().__init__(cards) self.__name = name - def __str__(self) -> str: + def __repr__(self) -> str: return f"[{', '.join(str(card) for card in self)}]" + def __str__(self) -> str: + return repr(self) + @property def name(self) -> str: return self.__name diff --git a/fftcg/opus.py b/fftcg/opus.py index adb74e0..3d27078 100644 --- a/fftcg/opus.py +++ b/fftcg/opus.py @@ -41,7 +41,7 @@ class Opus(Cards): self.__filename = "?" params = {"set": "?"} - logger.info(f"Importing Opus {self.__number}") + logger.info(f"Importing {name}") # required params: # text