

@blueprint.route('/feedback', methods=['POST'])
@api_wrapper
@check_csrf
@require_login
@block_before_competition(WebError('The competition has not begun yet!'))
def problem_feedback_hook():
    feedback = json.loads(request.form.get('feedback', ''))
    pid = request.form.get('pid', None)
    if ((feedback is None) or (pid is None)):
        return WebError('Please supply a pid and feedback.')
    api.problem_feedback.add_problem_feedback(pid, api.auth.get_uid(), pid)
    return WebSuccess('Your feedback has been accepted.')

dataset/ETHPy150Open IceCTF/ctf-platform/api/api/routes/problem.py problem_feedback_hook/VarMisuse@112/163 `feedback`->`pid`