diff --git a/README.html b/README.html
new file mode 100644
index 0000000..53d70c6
--- /dev/null
+++ b/README.html
@@ -0,0 +1,1078 @@
+
online-judge
+1. Activate virtualenv:
+source dmojsite/bin/activate
+2. Remember to change the local_settings
+3. Run server:
+python manage.py runserver 0.0.0.0:8000
+
+python dmojauto-conf
+5. Create folder for problems, change the dir in judge conf file and local_settings.py
+6. Connect judge:
+
+- python manage.py runbridged
+- dmoj 0.0.0.0 -p 9999 -c judge/conf1.yml (depend on port in the local_settings.py)
+
+7. Change vietnamese:
+
+- go to /home/cuom1999/DMOJ/site/locale/vi
+- open .po file
+- python manage.py compilemessages
+- python manage.py compilejsi18n
+
\ No newline at end of file
diff --git a/README.md b/README.md
index a96bb39..9d90172 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,22 @@
# online-judge
-LQD Online Judge
+### 1. Activate virtualenv:
+source dmojsite/bin/activate
+### 2. Remember to change the local_settings
+
+### 3. Run server:
+python manage.py runserver 0.0.0.0:8000
+
+### 4. Create configure file for judge:
+python dmojauto-conf
+
+### 5. Create folder for problems, change the dir in judge conf file and local_settings.py
+
+### 6. Connect judge:
++ python manage.py runbridged
++ dmoj 0.0.0.0 -p 9999 -c judge/conf1.yml (depend on port in the local_settings.py and directory of conf file)
+
+### 7. Change vietnamese:
+ - go to /home/cuom1999/DMOJ/site/locale/vi
+ - open .po file
+ - python manage.py compilemessages
+ - python manage.py compilejsi18n
diff --git a/judge/views/submission.py b/judge/views/submission.py
index 06aafde..6f664a0 100644
--- a/judge/views/submission.py
+++ b/judge/views/submission.py
@@ -128,7 +128,7 @@ def get_visible_content(data):
return data.decode('utf-8')
-def in_out_ans(case, submission, archive):
+def get_input_answer(case, archive):
result = {}
result['input'] = get_visible_content(archive.read(case.input_file))
result['answer'] = get_visible_content(archive.read(case.output_file))
@@ -148,7 +148,7 @@ def get_problem_data(submission):
testcases = ProblemTestCase.objects.filter(dataset=submission.problem)\
.order_by('order')
- problem_data = {case.order: in_out_ans(case, submission, archive)
+ problem_data = {case.order: get_input_answer(case, archive)
for case in testcases}
return problem_data