def remove_redis_keyword(self, keyword): ''' Remove the keyword for redis. ''' redisvr.srem(CMS_CFG['redis_kw'] + self.userinfo.user_name, keyword) return json.dump({}, self)
def remove_redis_keyword(self, kw): redisvr.srem(config.redis_kw + self.userinfo.user_name, kw) return json.dump({}, self)