Update modules prior to running them. Closes #1.

This commit is contained in:
Lucas Verney 2016-09-30 05:44:30 +02:00
parent 12401f616b
commit 4820290aae

View File

@ -47,7 +47,7 @@ class WeboobProxy(object):
""" """
Ensure modules are up to date. Ensure modules are up to date.
""" """
Weboob().update() Weboob().update(progress=DummyProgress())
def __init__(self, modulename, parameters): def __init__(self, modulename, parameters):
""" """
@ -86,7 +86,9 @@ def main(used_modules):
Returns: A dict of all the results, ready to be JSON serialized. Returns: A dict of all the results, ready to be JSON serialized.
""" """
# Update all available modules # Update all available modules
# TODO: WeboobProxy.update() logging.info("Update all available modules.")
WeboobProxy.update()
logging.info("Done updating available modules.")
# Fetch data for the specified modules # Fetch data for the specified modules
fetched_data = collections.defaultdict(dict) fetched_data = collections.defaultdict(dict)