Fix submission client when no host is passed to the cli

This commit is contained in:
Régis Behmo 2020-05-13 10:29:29 +02:00
parent baf5e6cb75
commit 886ae671a0
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ Then, to enable this plugin, run::
Usage Usage
----- -----
In the Open edX studio, edit a course and add a new "Advanced blank problem" ("Problem" 🠆 "Advanced" 🠆 "Advanced blank problem"). Then, click "Edit" and copy-paste the following in the editor:: In the Open edX studio, edit a course and add a new "Advanced blank problem" ("Problem" 🠆 "Advanced" 🠆 "Blank Advanced Problem"). Then, click "Edit" and copy-paste the following in the editor::
<problem> <problem>

View File

@ -1 +1 @@
__version__ = "0.2.0" __version__ = "0.2.1"

View File

@ -114,7 +114,7 @@ class Client:
self.base_url = url self.base_url = url
if not self.base_url: if not self.base_url:
scheme = "https" if user_config["ACTIVATE_HTTPS"] else "http" scheme = "https" if user_config["ACTIVATE_HTTPS"] else "http"
host = host or user_config["XQUEUE_HOST"] host = user_config["XQUEUE_HOST"]
self.base_url = "{}://{}".format(scheme, host) self.base_url = "{}://{}".format(scheme, host)
self.login() self.login()