End calculation in get_jobs_ids in fixed. Length is respected

main
Onilton Maciel 12 years ago
parent 97de8ea3cc
commit 3afc32f08a

@ -78,7 +78,7 @@ class Queue(object):
"""Returns a slice of job IDs in the queue."""
start = offset
if length >= 0:
end = offset + length
end = offset + (length - 1)
else:
end = length
return self.connection.lrange(self.key, start, end)

Loading…
Cancel
Save