Commit b9169d75 authored by Neil Williams's avatar Neil Williams
Browse files

Fix typo in the variable names for since



Variable 'start' was being overwritten, causing an error.
Signed-off-by: default avatarNeil Williams <neil.williams@linaro.org>
parent 53e21ef2
......@@ -206,11 +206,11 @@ class SchedulerJobsAPI(ExposedV2API):
# since
if since:
end = datetime.now()
end_time = datetime.now()
# search back in time
start = end - timedelta(minutes=since)
start_time = end_time - timedelta(minutes=since)
try:
jobs = jobs.filter(end_time__range=[start, end])
jobs = jobs.filter(end_time__range=[start_time, end_time])
except TestJob.DoesNotExist:
raise xmlrpc.client.Fault(404, "No jobs exist since %s minutes ago" % since)
......
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