def get(self):
vote_keys = util.param('vote_keys', list)
if vote_keys:
vote_db_keys = [ndb.Key(urlsafe=k) for k in vote_keys]
vote_dbs = ndb.get_multi(vote_db_keys)
return helpers.make_response(vote_dbs, model.vote.FIELDS)
vote_dbs, vote_cursor = model.Vote.get_dbs()
return helpers.make_response(vote_dbs, model.Vote.FIELDS, vote_cursor)
评论列表
文章目录