src/domain/equipment.py
BeforeProposed
+1−1
2323def due(state, command):
2424 return sorted([item['id'] for (tenant, _), item in state['equipment'].items()
2525 if tenant == command['tenant'] and item['status'] == 'ready'
26 and item['meter'] - item['lastService'] > item['interval']])
26 and item['meter'] - item['lastService'] >= item['interval']])
2727
2828
2929def inspect(state, command):