Пример #1
0
 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")
Пример #2
0
    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})
Пример #3
0
 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)