Пример #1
0
 def get_actions(self):
     data = rds.lrange(self.db_key, 0, MAX_ACTIONS_COUNT)
     return [json.loads(d) for d in data]
Пример #2
0
 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
Пример #3
0
 def get_actions(self):
     data = rds.lrange(self.db_key, 0, MAX_ACTIONS_COUNT)
     return [json.loads(d) for d in data]