Skip to content

Commit

Permalink
Fix bug with invalid capacity when creating sprint from vim
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMarkinPPC committed Mar 14, 2024
1 parent 692d1bf commit 7794567
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terka/domain/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7794567

Please sign in to comment.