def examing(id,count): if request.method == 'GET': #记录登入信息,更新参考用户 login_ip = request.remote_addr ExamConditionService.update_exam_condition_begin(id,current_user.user_id,login_ip) #生成考试页面存储到my_answer里 page_dict = create_page(id) page_dict['now_time'] = int(time.time()) page_dict['end_time'] = page_dict['now_time'] + page_dict['times'] * 60 exam_page_json = json.dumps(page_dict) ExamConditionService.save_page(id, current_user.user_id, exam_page_json, None, count) return render_template('web/exam/exam.html',id=id)
def exam_continue(id,count): # 记录登入信息,更新参考用户 login_ip = request.remote_addr ExamConditionService.update_exam_condition_begin(id, current_user.user_id, login_ip) return render_template('web/exam/exam.html',id=id,count=count)