From 3afc32f08ab4b73dfd937870e73073d756711b5c Mon Sep 17 00:00:00 2001 From: Onilton Maciel Date: Sun, 16 Jun 2013 18:11:03 -0400 Subject: [PATCH] End calculation in get_jobs_ids in fixed. Length is respected --- rq/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/queue.py b/rq/queue.py index 759c485..d08311c 100644 --- a/rq/queue.py +++ b/rq/queue.py @@ -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)