Fixes module registration process
This commit is contained in:
parent
e472282a33
commit
75f1a0a230
@ -11,7 +11,7 @@ class Controller:
|
||||
"""
|
||||
def __init__(self,
|
||||
test: bool):
|
||||
self.risotto_modules = services.get_list()
|
||||
self.risotto_modules = services.get_modules_list()
|
||||
|
||||
async def call(self,
|
||||
uri: str,
|
||||
|
@ -37,7 +37,7 @@ class Services():
|
||||
def get_modules(self):
|
||||
if not self.modules_loaded:
|
||||
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):
|
||||
return self.services.keys()
|
||||
|
Loading…
Reference in New Issue
Block a user