新建了附件文件夹,里边放一些oj的管理工具,也可能是以后的正式的后台工具
This commit is contained in:
9
Accessories/utils.py
Normal file
9
Accessories/utils.py
Normal 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
|
||||
Reference in New Issue
Block a user