Example #1
0
def get_score(xh):
    """
    提供学号
    返回全部成绩表
    """
    score_obj = ALL_SCORE()
    score = score_obj.get_all_score(xh)

    return score
Example #2
0
def get_score(xh):
    """
    提供学号
    返回全部成绩表
    """
    score_obj = ALL_SCORE()
    score = score_obj.get_all_score(xh)

    return score
Example #3
0
    def POST(self):
        form = xh_form()
        if not form.validates():
            return render.score(form)
        else:
            xh = form.d.xh
            a = ALL_SCORE()
            table = a.get_all_score(xh)

            if table:
                error = None
                return render.result(table,error)
            else:
                table = None
                error = "can not get your score"
                return render.result(table,error)