diff --git a/giftpack/tables/xmasgift.py b/giftpack/tables/xmasgift.py index 237db5f1..3d91f23a 100644 --- a/giftpack/tables/xmasgift.py +++ b/giftpack/tables/xmasgift.py @@ -27,7 +27,7 @@ class XmasGift: return Column(Boolean, nullable=False, default=False) def __str__(self): - msg = f"Regalo #{self.gift_id} da {self.source} a {self.destination}" + f": {self.extra_text}" if self.extra_text else "" + msg = f"Regalo #{self.gift_id} da {self.source} a {self.destination}" + (f": {self.extra_text}" if self.extra_text else "") if self.drawn: return f"⚫️ {msg}" else: diff --git a/giftpack/version.py b/giftpack/version.py index bd3ba3ff..c3cafffc 100644 --- a/giftpack/version.py +++ b/giftpack/version.py @@ -1 +1 @@ -semantic = "1.0.1" +semantic = "1.0.2" diff --git a/pyproject.toml b/pyproject.toml index 39a6bca8..4f85df3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ [tool.poetry] name = "giftpack" description = "A pack for the gift drawing at the Xmas 2019 family lunch" - version = "1.0.1" + version = "1.0.2" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" homepage = "https://github.com/Steffo99/giftpack"