修改题目前端样式
This commit is contained in:
15
problem/migrations/0006_merge.py
Normal file
15
problem/migrations/0006_merge.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('problem', '0005_auto_20150813_1807'),
|
||||
('problem', '0004_auto_20150812_2254'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
]
|
||||
@@ -47,15 +47,6 @@ def problem_page(request, problem_id):
|
||||
return render(request, "oj/problem/problem.html", {"problem": problem, "samples": json.loads(problem.samples)})
|
||||
|
||||
|
||||
def problem_my_solutions_list_page(request, problem_id):
|
||||
return render(request, "oj/problem/my_solutions_list.html")
|
||||
|
||||
|
||||
def my_solution(request, solution_id):
|
||||
return render(request, "oj/problem/my_solution.html")
|
||||
|
||||
|
||||
|
||||
class ProblemAdminAPIView(APIView):
|
||||
def post(self, request):
|
||||
"""
|
||||
@@ -197,7 +188,7 @@ class TestCaseUploadAPIView(APIView):
|
||||
os.mkdir(test_case_dir)
|
||||
for name in l:
|
||||
f = open(test_case_dir + name, "wb")
|
||||
f.write(test_case_file.read(name))
|
||||
f.write(test_case_file.read(name).replace("\r\n", "\n"))
|
||||
f.close()
|
||||
l.sort()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user