Skip to content

Commit 4e0b852

Browse files
committed
arguably-unnecessary helper property on model. [orderids_property]
1 parent ccbaa5a commit 4e0b852

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/allocation/domain/model.py‎

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

76+
@property
77+
def orderids(self):
78+
return {l.orderid for l in self._allocations}
79+
7680
def allocate(self, line: OrderLine):
7781
if self.can_allocate(line):
7882
self._allocations.add(line)

0 commit comments

Comments
 (0)