From 6a8e327e80a9cbe69b3c0d8b1e5349f46bbcdd9c Mon Sep 17 00:00:00 2001 From: "sxw@401" Date: Sun, 6 Sep 2015 08:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E4=BA=86=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9,=E9=87=8C=E8=BE=B9=E6=94=BE?= =?UTF-8?q?=E4=B8=80=E4=BA=9Boj=E7=9A=84=E7=AE=A1=E7=90=86=E5=B7=A5?= =?UTF-8?q?=E5=85=B7,=E4=B9=9F=E5=8F=AF=E8=83=BD=E6=98=AF=E4=BB=A5?= =?UTF-8?q?=E5=90=8E=E7=9A=84=E6=AD=A3=E5=BC=8F=E7=9A=84=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Accessories/utils.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Accessories/utils.py diff --git a/Accessories/utils.py b/Accessories/utils.py new file mode 100644 index 00000000..751b51c4 --- /dev/null +++ b/Accessories/utils.py @@ -0,0 +1,9 @@ +import django +from contest.models import Contest +django.setup() + +def add_exist_problem_to_contest(problems, contest_id): + for problem in problems: + print problem.title + + return