From 7794567e229b2f9e49c9d424766be82d283b93e3 Mon Sep 17 00:00:00 2001 From: Andrei Markin Date: Fri, 15 Mar 2024 02:01:36 +0400 Subject: [PATCH] Fix bug with invalid capacity when creating sprint from vim --- terka/domain/commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terka/domain/commands.py b/terka/domain/commands.py index 6ad7fd7..af9d23d 100644 --- a/terka/domain/commands.py +++ b/terka/domain/commands.py @@ -354,6 +354,9 @@ class CreateSprint(Command): end_date: str | None = None capacity: int = 40 + def __post_init__(self) -> None: + self.capacity = int(self.capacity) + def __bool__(self) -> bool: if self.start_date and self.end_date: return True