Skip to content

Commit efdfc1e

Browse files
mjrussoMatt George
authored andcommitted
keys() now correctly returns only the keys actually belonging to pyres
1 parent 10e86e1 commit efdfc1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyres/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def info(self):
170170
}
171171

172172
def keys(self):
173-
return [key.replace('resque:','') for key in self.redis.keys('*')]
173+
return [key.replace('resque:','') for key in self.redis.keys('resque:*')]
174174

175175
def reserve(self, queue):
176176
from pyres.job import Job

0 commit comments

Comments
 (0)