diff --git a/giftpack/commands/delgift.py b/giftpack/commands/delgift.py index e653ae2f..87b5ceaf 100644 --- a/giftpack/commands/delgift.py +++ b/giftpack/commands/delgift.py @@ -12,7 +12,7 @@ class DelgiftCommand(Command): syntax: str = "" async def run(self, args: CommandArgs, data: CommandData) -> None: - gift = data.session.query(self.alchemy.get(XmasGift)).filter_by(drawn=False, gift_id=int(args[0])).order_by(func.random()).first() + gift = data.session.query(self.alchemy.get(XmasGift)).filter_by(gift_id=int(args[0])).order_by(func.random()).first() data.session.delete(gift) await data.reply(f"🎁 Regalo eliminato (bye bye!):\n" f"{gift}") diff --git a/giftpack/version.py b/giftpack/version.py index ed8933f2..bd3ba3ff 100644 --- a/giftpack/version.py +++ b/giftpack/version.py @@ -1 +1 @@ -semantic = "1.0" +semantic = "1.0.1" diff --git a/pyproject.toml b/pyproject.toml index a9a66af0..39a6bca8 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" + version = "1.0.1" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" homepage = "https://github.com/Steffo99/giftpack"