Example #1
0
 def get_messages(self, start=0, stop=LATEST_MESSAGE_NUM):
     data = rds.zrevrange(self.db_key, start, stop)
     return reversed([json.loads(d) for d in data])
Example #2
0
 def get_actions(self, start=0, stop=MAX_ACTIONS_COUNT):
     data = rds.zrevrange(self.db_key, start, stop)
     return [json.loads(d) for d in data]
Example #3
0
 def get_actions(self, start=0, stop=MAX_ACTIONS_COUNT):
     data = rds.zrevrange(self.db_key, start, stop)
     return [json.loads(d) for d in data]