def get_actions(self): data = rds.lrange(self.db_key, 0, MAX_ACTIONS_COUNT) return [json.loads(d) for d in data]
def get_data(cls, receiver): key = rds_key_for_receiver(receiver) raw_data = rds.lrange(key, 0, MAX_NOTIFY_COUNT) data = [json.loads(d) for d in raw_data] return data