From 4820290aae08a368e3ed3dd32bf9fcc9cf869705 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Fri, 30 Sep 2016 05:44:30 +0200 Subject: [PATCH] Update modules prior to running them. Closes #1. --- cozyweboob.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cozyweboob.py b/cozyweboob.py index ee5c8e0..0f790f0 100755 --- a/cozyweboob.py +++ b/cozyweboob.py @@ -47,7 +47,7 @@ class WeboobProxy(object): """ Ensure modules are up to date. """ - Weboob().update() + Weboob().update(progress=DummyProgress()) 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. """ # 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 fetched_data = collections.defaultdict(dict)