src/domain/samples.py
BeforeProposed
+1−1
3030 now = integer(command['now'], 'now')
3131 return sorted([sample['id'] for (tenant, _), sample in state['samples'].items()
3232 if tenant == command['tenant'] and sample['holder'] == command['actor']
33 and now < sample['expiresAt']
33 and sample['status'] == 'available' and now < sample['expiresAt']
3434 and sample['quantity'] > 0])