Skip to content

Commit 10e86e1

Browse files
mjrussoMatt George
authored andcommitted
redis client 1.34.1 compatibility for 'keys' section of 'Stats' tab
1 parent ccf4123 commit 10e86e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resweb/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def key_info(self):
287287

288288
stats.append({
289289
'key': str(key),
290-
'type': str(self.resq.redis.get_type('resque:'+key)),
290+
'type': str(self.resq.redis.type('resque:'+key)),
291291
'size': str(redis_size(key, self.resq))
292292
})
293293
return stats
@@ -308,7 +308,7 @@ def key(self):
308308
return str(self.stat_id)
309309

310310
def key_type(self):
311-
return str(self.resq.redis.get_type(self.stat_id))
311+
return str(self.resq.redis.type(self.stat_id))
312312

313313
def items(self):
314314
items = []
@@ -407,7 +407,7 @@ def runat(self):
407407
"""
408408
pass
409409
def redis_size(key, resq):
410-
key_type = resq.redis.get_type('resque:'+key)
410+
key_type = resq.redis.type('resque:'+key)
411411
item = 0
412412
if key_type == 'list':
413413
item = resq.redis.llen('resque:'+key)

0 commit comments

Comments
 (0)