Fixes module registration process

This commit is contained in:
Benjamin Bohard 2020-04-01 16:27:05 +02:00
parent e472282a33
commit 75f1a0a230
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class Controller:
""" """
def __init__(self, def __init__(self,
test: bool): test: bool):
self.risotto_modules = services.get_list() self.risotto_modules = services.get_modules_list()
async def call(self, async def call(self,
uri: str, uri: str,

View File

@ -37,7 +37,7 @@ class Services():
def get_modules(self): def get_modules(self):
if not self.modules_loaded: if not self.modules_loaded:
self.load_modules() self.load_modules()
return [(m, getattr(self, m)) for s in self.get_modules_list()] return [(m, getattr(self, m)) for s in self.services.values() for m in s]
def get_services_list(self): def get_services_list(self):
return self.services.keys() return self.services.keys()