summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorankitjavalkar2018-01-04 16:20:00 +0530
committerankitjavalkar2018-01-04 16:20:00 +0530
commitbbf844c6ebf9b29c436930b5d5129ebf77a3aad1 (patch)
tree8cf8c7ef08b63b68013dce99faf14223c2f73764 /yaksh/models.py
parent2846e4372bb5d255c9b4405456b133f174916893 (diff)
downloadonline_test-bbf844c6ebf9b29c436930b5d5129ebf77a3aad1.tar.gz
online_test-bbf844c6ebf9b29c436930b5d5129ebf77a3aad1.tar.bz2
online_test-bbf844c6ebf9b29c436930b5d5129ebf77a3aad1.zip
Replace hardcoded codeserver URL in regrade method within models
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index e733fc0..2f616cf 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1740,7 +1740,7 @@ class AnswerPaper(models.Model):
server_port=server_port
)
if question.type == "code":
- url = 'http://localhost:%s' % server_port
+ url = '{0}:{1}'.format(SERVER_HOST_NAME, server_port)
check_result = get_result_from_code_server(url, result['uid'],
block=True
)