def unfav_topic(mid,tid): fav_status = r.srem('fav_topic:'+mid,tid) faved_status = r.srem('faved_topic:'+tid,mid) return fav_status and faved_status
def unfav_node(mid,tid): fav_status = r.srem('fav_node:'+mid,tid) faved_status = r.srem('faved_node:'+tid,mid) return fav_status and faved_status
def unfav_user(mid,tid): fav_status = r.srem('fav_user:'******'faved_user:'+tid,mid) return fav_status and faved_status