def GET(self):
        # session = web.config._session
        if web.ctx.session.loginned == 1:
            result = DutyInfoManager.data()
            my_type = result[0]

            if my_type == 0:
                return render.user(result[1])

            elif my_type == 1:
                return render.superuser(result[1][0], result[1][1])
            elif my_type == 2:

                return render.manage(result[1][0], result[1][1])
        raise web.seeother("/")
 def GET(self):
     DutyInfoManager.scheduleclear()
     raise web.seeother("/schedule/data")
    def GET(self):
        DutyInfoManager.userclear()

        raise web.seeother("/schedule/info")
 def GET(self):
     result = DutyInfoManager.data()
     return render.info(result[1][1])