新建了附件文件夹,里边放一些oj的管理工具,也可能是以后的正式的后台工具

This commit is contained in:
sxw@401 2015-09-06 08:11:06 +08:00
parent 0ba1f0ab70
commit 6a8e327e80

9
Accessories/utils.py Normal file
View File

@ -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