oioioi.problems.handlers

Module Contents

Functions

update_problem_instance(env)

Updates ProblemInstance for the

update_all_probleminstances_after_reupload(problem)

Updates test_set for every problem_instance assigned to Problem.

oioioi.problems.handlers.update_problem_instance(env)[source]

Updates ProblemInstance for the processed Problem (if contest and round are given creates an ProblemInstance which is a copy of problem.main_problem_instance and assigns it to Contest and Round.

Used env keys:

problem_id: id of the processed Problem

contest_id: id of the Contest the problem instance should be attached to.

round_id: (Optional) id of the Round the problem instance should be attached to.

is_reupload: set on True when problem is being reuploaded

oioioi.problems.handlers.update_all_probleminstances_after_reupload(problem)[source]

Updates test_set for every problem_instance assigned to Problem. to main_problem_instance.test_set