def GET(self, shortcode):
log.debug('data.GET')
user = users.collection.find_one({SHORT_KEY: shortcode})
if user:
log.debug('shortcode {0} matches user {1}'.format(shortcode, user))
else:
log.debug('no user found matching shortcode')
raise web.seeother('/error')
return render.data(processor.results(user["token"]))
评论列表
文章目录