def get(self): db_args = get_db_args() try: users = mssql_util.m_query("select _id, opt_ID, nickname from passport", **db_args) self.render("action/user.html", users = users) except: self.redirect("/settings")
def get(self): _id = self.get_argument("_id") db_args = get_db_args() users = mssql_util.m_query("select _id, opt_ID, nickname from passport where _id = '{}'".format(_id), **db_args) users = users[0] self.write({'status': True, 'users': users})
def get(self): db_args = get_db_args() users = mssql_util.m_query("select _id, opt_ID, nickname from passport", **db_args) self.render("action/user.html", users = users)