Commit 0cc93ef5 authored by Georgios Dagkakis's avatar Georgios Dagkakis

Correction in M3

parent c22b83bf
......@@ -39,7 +39,8 @@ class M3(BatchScrapMachine):
def canAcceptAndIsRequested(self, callerObject=None):
nextObject=self.next[0]
if len(nextObject.getActiveObjectQueue())>0:
if nextObject.getActiveObjectQueue()[0].type=='Batch':
if nextObject.getActiveObjectQueue()[0].type=='Batch' or\
len(nextObject.getActiveObjectQueue())==nextObject.numberOfSubBatches:
return False
return BatchScrapMachine.canAcceptAndIsRequested(self, callerObject)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment