Operator activeQSorter fixed for WT schedulingRule

parent 8c43b4dc
......@@ -87,7 +87,7 @@ class Operator(Repairman):
# TODO: consider that the timeLastEntityEnded is not a
# indicative identifier of how long the station was waiting
elif criterion=='WT':
activeObjectQ.sort(key=lambda x: x.timeLastEntityEnded)
activeObjectQ.sort(key=lambda x: x.entityToGet.schedule[-1][1])
#if the schedulingRule is earliest due date
elif criterion=="EDD":
activeObjectQ.sort(key=lambda x: x.entityToGet.dueDate)
......
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