예제 #1
0
파일: message.py 프로젝트: jackfrued/code-1
 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])
예제 #2
0
파일: feed.py 프로젝트: leeccong/code
 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]
예제 #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]