diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2019-07-24 12:01:18 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2019-07-24 12:01:18 +0200 |
commit | 58fd1fb2d228ef5e8cecbe4bdf6dabe6b3ccf457 (patch) | |
tree | 7d6046a82c55ba261ae66a3f625d99d9e2cef0eb | |
parent | 752e0fdd8c3cdd7c65acf27bb06a6b2cae47cb3c (diff) |
fbin-scanner: Default STORAGE_MODULE to fbin.file_storage.filesystem
-rw-r--r-- | fbin-scanner.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |