From 3dcc6ccc539552dfcb4650c64278980f26cfdb05 Mon Sep 17 00:00:00 2001 From: Branko Vukelic Date: Mon, 16 Nov 2015 01:06:51 +0100 Subject: [PATCH] Fixed wrong reference to config Signed-off-by: Branko Vukelic --- librarian/utils/import_daemon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/librarian/utils/import_daemon.py b/librarian/utils/import_daemon.py index e39c25d0..63b077ce 100644 --- a/librarian/utils/import_daemon.py +++ b/librarian/utils/import_daemon.py @@ -48,13 +48,13 @@ def generate_file_list(app): def check_for_updates(app): - config = app.config + conf = app.config meta_filename = conf['content.metadata'] - archive = open_archive(config=config) + archive = open_archive(config=conf) updates = generate_file_list(app) - for path in updates: + for path, _ in updates: cid = zipballs.get_md5_from_path(path) - args=(archive, cid, config) + args = (archive, cid, conf) app.exts.tasks.schedule(add_file, args=args) app.exts.tasks.schedule(schedule_check, args=(app,), kwargs={'delay': 600})