settings: fixed queue to have the same behavior as python

parent aa836506
......@@ -240,6 +240,8 @@ class QueueSetting(object):
if first == last:
l = cnx.lindex(self._name,first)
else:
if last != -1:
last -= 1
l = cnx.lrange(self._name,first,last)
return l
......
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