Merge "Only count live items for relative priority"
This commit is contained in:
commit
271feec3ca
|
@ -87,7 +87,9 @@ class PipelineManager(object):
|
||||||
|
|
||||||
def getNodePriority(self, item):
|
def getNodePriority(self, item):
|
||||||
items = self.pipeline.getAllItems()
|
items = self.pipeline.getAllItems()
|
||||||
items = [i for i in items if i.change.project == item.change.project]
|
items = [i for i in items
|
||||||
|
if i.change.project == item.change.project and
|
||||||
|
i.live]
|
||||||
for idx, val in enumerate(items):
|
for idx, val in enumerate(items):
|
||||||
if item == val:
|
if item == val:
|
||||||
return idx
|
return idx
|
||||||
|
|
Loading…
Reference in New Issue