diff options
author | ankitjavalkar | 2018-01-04 16:20:00 +0530 |
---|---|---|
committer | ankitjavalkar | 2018-01-04 16:20:00 +0530 |
commit | bbf844c6ebf9b29c436930b5d5129ebf77a3aad1 (patch) | |
tree | 8cf8c7ef08b63b68013dce99faf14223c2f73764 /yaksh | |
parent | 2846e4372bb5d255c9b4405456b133f174916893 (diff) | |
download | online_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')
-rw-r--r-- | yaksh/models.py | 2 |
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 ) |