make add_rate_to_jobs singular

there was no reason for it to operate on a whole list at a time
This commit is contained in:
Leo Hemsted
2016-10-05 09:52:31 +01:00
parent 549a17c1f7
commit be97edce7f
3 changed files with 26 additions and 15 deletions

View File

@@ -81,8 +81,8 @@ def get_failure_rate_for_job(job):
)
def add_rate_to_jobs(jobs):
return [dict(
def add_rate_to_job(job):
return dict(
failure_rate=(get_failure_rate_for_job(job)) * 100,
**job
) for job in jobs]
)