diff --git a/submission/templatetags/__init__.py b/submission/templatetags/__init__.py deleted file mode 100644 index 9bad5790..00000000 --- a/submission/templatetags/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# coding=utf-8 diff --git a/submission/templatetags/submission.py b/submission/templatetags/submission.py deleted file mode 100644 index 51806f04..00000000 --- a/submission/templatetags/submission.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 - - -def translate_result(value): - print value - results = { - 0: "Accepted", - 1: "Runtime Error", - 2: "Time Limit Exceeded", - 3: "Memory Limit Exceeded", - 4: "Compile Error", - 5: "Format Error", - 6: "Wrong Answer", - 7: "System Error", - 8: "Waiting" - } - return results[value] - - -def translate_id(submission_item): - print submission_item - return submission_item["_id"] - -from django import template - -register = template.Library() -register.filter("translate_result", translate_result) -register.filter("translate_id", translate_id) \ No newline at end of file diff --git a/template/oj/problem/my_solution.html b/template/oj/problem/my_solution.html deleted file mode 100644 index 8f05b109..00000000 --- a/template/oj/problem/my_solution.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends 'oj_base.html' %} - -{% block body %} - -
- -

Battle Over Cities - Hard Version

-

cpu: 1000ms 内存: 256M

-
-
-

运行结果:Accepted

-

cpu: 1000ms 内存: 256M 语言:python

-
-
-
- -
-
- -{% endblock %} \ No newline at end of file