NOJIRA added itemcounter
This commit is contained in:
@@ -28,6 +28,10 @@ class DTO:
|
||||
def items(self) -> List[Item]:
|
||||
return sorted([Item(name, amount) for name, amount in self.__items.items()])
|
||||
|
||||
@property
|
||||
def item_count(self) -> int:
|
||||
return sum(self.__items.values())
|
||||
|
||||
@property
|
||||
def applicants(self) -> List[str]:
|
||||
return sorted(self.__applicants)
|
||||
|
||||
Reference in New Issue
Block a user