From 40c79e85b852d027adf135e23bcd11e20513ea0f Mon Sep 17 00:00:00 2001 From: "sxw@401" Date: Sun, 6 Sep 2015 08:43:40 +0800 Subject: [PATCH] =?UTF-8?q?Accessories:=E4=BF=AE=E6=AD=A3=E5=88=9A?= =?UTF-8?q?=E5=88=9A=E6=8F=90=E4=BA=A4=E7=9A=84=E9=94=99=E8=AF=AF,?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E8=AF=A5=E8=84=9A=E6=9C=AC=E5=8F=AA=E8=83=BD?= =?UTF-8?q?=E5=9C=A8=E6=9C=8D=E5=8A=A1=E5=99=A8=E4=B8=8A=E8=B7=91....?= =?UTF-8?q?=E6=89=80=E4=BB=A5=E8=AF=95=E4=BA=86=E6=89=8D=E5=8F=91=E7=8E=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF[CI=20SKIP]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Accessories/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Accessories/utils.py b/Accessories/utils.py index e0cd879..49f0ea6 100644 --- a/Accessories/utils.py +++ b/Accessories/utils.py @@ -14,7 +14,7 @@ def add_exist_problem_to_contest(problems, contest_id): for problem in problems: print "Add the problem:" print problem.title - ContestProblem.create(contest, sort_index=str(i), + ContestProblem.bujects.create(contest, sort_index=str(i), title=problem.title, description=problem.description, input_description=problem.input_description, output_description=problem.output_description,