Commit 834cd6da authored by Jérome Perrin's avatar Jérome Perrin

ACO: fix score calculation, object class is no longer Dream.Job

parent 1f68292d
...@@ -19,9 +19,9 @@ class ACO(plugin.ExecutionPlugin): ...@@ -19,9 +19,9 @@ class ACO(plugin.ExecutionPlugin):
result, = ant['result']['result_list'] #read the result as JSON result, = ant['result']['result_list'] #read the result as JSON
#loop through the elements #loop through the elements
for element in result['elementList']: for element in result['elementList']:
elementClass=element['_class'] #get the class element_family = element['family']
#id the class is Job #id the class is Job
if elementClass=='Dream.Job': if element_family == 'Job':
results=element['results'] results=element['results']
delay = float(results.get('delay', "0")) delay = float(results.get('delay', "0"))
# A negative delay would mean we are ahead of schedule. This # A negative delay would mean we are ahead of schedule. This
......
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