From 58fd1fb2d228ef5e8cecbe4bdf6dabe6b3ccf457 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 24 Jul 2019 12:01:18 +0200 Subject: fbin-scanner: Default STORAGE_MODULE to fbin.file_storage.filesystem --- fbin-scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbin-scanner.py b/fbin-scanner.py index 8bd0d6b..2e60522 100644 --- a/fbin-scanner.py +++ b/fbin-scanner.py @@ -79,7 +79,7 @@ def get_report(dbfile, digest, fileobj): logger.warning('Unknown response: %s', data) def main(): - storage = importlib.import_module(current_app.config.get('STORAGE_MODULE')).Storage(current_app) + storage = importlib.import_module(current_app.config.get('STORAGE_MODULE', 'fbin.file_storage.filesystem')).Storage(current_app) with session_scope() as session: files = deque(session.query(File).filter(File.scanned == False).all()) while len(files): -- cgit v1.2.3