def hard_easy(): email = get_email_from_request() project = get_current_project() doc1_id = request.form.get('file_one_id') doc2_id = request.form.get('file_two_id') pair_id = request.form.get('pair_id') DBProxy.add_doc_pair_reject(judge_id=DBProxy.get_judge_id(email), email=email, project_name=project, doc1_id=doc1_id, doc2_id=doc2_id, doc_pair_id=pair_id) DBProxy.return_pair(pair_id, too_hard=True) return redirect(url_for('sorter'))
def force_return(): pair_id = request.form.get('pair_id') DBProxy.return_pair(pair_id) return redirect(url_for('tower'))
def safe_exit(): pair_id = request.form.get('pair_id') DBProxy.return_pair(pair_id) return redirect(url_for('instructions'))