Fix submission client when no host is passed to the cli
This commit is contained in:
parent
baf5e6cb75
commit
886ae671a0
@ -17,7 +17,7 @@ Then, to enable this plugin, run::
|
||||
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>
|
||||
|
||||
@ -1 +1 @@
|
||||
__version__ = "0.2.0"
|
||||
__version__ = "0.2.1"
|
||||
|
||||
@ -114,7 +114,7 @@ class Client:
|
||||
self.base_url = url
|
||||
if not self.base_url:
|
||||
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.login()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user