Skip to content

Commit 074c820

Browse files
committed
arguably-unnecessary helper property on model. [orderids_property]
1 parent 5e545e1 commit 074c820

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/allocation/domain/model.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ def __gt__(self, other):
7171
return True
7272
return self.eta > other.eta
7373

74+
@property
75+
def orderids(self):
76+
return {l.orderid for l in self._allocations}
77+
7478
def allocate(self, line: OrderLine):
7579
if self.can_allocate(line):
7680
self._allocations.add(line)

0 commit comments

Comments
 (0)