def POST(self): form = xh_form() title = '往年四六级成绩' if not form.validates(): return render.normal_form(title=title, form=form) else: xh = form.d.xh table = get_old_cet(xh) return render.old_result(cet_table=table)
def POST(self): form = xh_form() title='往年四六级成绩' if not form.validates(): return render.normal_form(title=title,form=form) else: xh = form.d.xh table=get_old_cet(xh) return render.old_result(cet_table=table)
def POST(self): form = xh_form() if not form.validates(): return render.score(form=form) else: xh = form.d.xh from addons import get_gpa, get_score gpa = get_gpa(xh) score = get_score(xh) return render.old_result(score_table=score, jidian=gpa['ave_score'])
def POST(self): form = xh_form() if not form.validates(): return render.score(form=form) else: xh = form.d.xh from addons import get_gpa, get_score gpa=get_gpa(xh) score=get_score(xh) return render.old_result(score_table=score, jidian=gpa['ave_score'])
def GET(self): form = xh_form() return render.score(form=form)