From 826902213c6ecb2b56f856e70c0a0309d044a00d Mon Sep 17 00:00:00 2001 From: moneromooo Date: Mon, 19 Jan 2015 23:46:31 +0000 Subject: [PATCH] Add trampoline for zincrby --- tipbot/redisdb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tipbot/redisdb.py b/tipbot/redisdb.py index e182cfb..2a3efe3 100644 --- a/tipbot/redisdb.py +++ b/tipbot/redisdb.py @@ -73,6 +73,9 @@ def redis_lpop(k): def redis_lindex(k,n): return redisdb.lindex(k,n) +def redis_zincrby(t,k,s): + return redisdb.zincrby(t,k,s) + def redis_delete(k): return redisdb.delete(k) @@ -97,6 +100,7 @@ def CompatibilityCheck(): if not p.rpush: raise RuntimeError('rpush call not found') if not p.lpop: raise RuntimeError('lpop call not found') if not p.lindex: raise RuntimeError('lindex call not found') + if not p.zincrby: raise RuntimeError('zincrby call not found') if not p.execute: raise RuntimeError('execute call not found') if not p.delete: raise RuntimeError('delete call not found') except Exception,e: