Skip to content

Commit

Permalink
Fix #7 (and add config service for enchantments that will be added la…
Browse files Browse the repository at this point in the history
…ter)
  • Loading branch information
c0d3d3v committed Feb 19, 2020
1 parent ccfa81b commit 49e5b4e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 13 additions & 0 deletions config_service/config_service.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from config_service.config_helper import ConfigHelper


class ConfigService:
def __init__(self, config_helper: ConfigHelper):
self.config_helper = config_helper

def interactively_acquire_config(self):
"""
Guides the user through the process of configuring the downloader
for the courses to be downloaded and in what way
"""
print('Not yet implemented')
6 changes: 4 additions & 2 deletions moodle_connector/moodle_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ def _split_moodle_uri(moodle_uri: str):
"""

moodle_domain = moodle_uri.netloc
moodle_path = os.path.join(os.path.dirname(moodle_uri.path), '')

moodle_path = moodle_uri.path
if not moodle_path.endswith('/'):
moodle_path = moodle_path + "/"

if(moodle_path == ''):
moodle_path = '/'

Expand Down

0 comments on commit 49e5b4e

Please sign in to comment.