From af3c133d02c22583c658d0ed19c143d78af91adc Mon Sep 17 00:00:00 2001 From: j Date: Sun, 25 May 2014 22:09:55 +0200 Subject: [PATCH] fix import --- oml/item/scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/item/scan.py b/oml/item/scan.py index d3c6824..37e82f2 100644 --- a/oml/item/scan.py +++ b/oml/item/scan.py @@ -53,7 +53,7 @@ def add_file(id, f, prefix): item.meta['primaryid'] = item.info.pop('primaryid') db.session.add(item) item.users.append(user) - Changelog.record(user, 'additem', item.id, f.info) + Changelog.record(user, 'additem', item.id, file.info) if item.meta.get('primaryid'): Changelog.record(user, 'edititem', item.id, dict([item.meta['primaryid']])) item.added = datetime.utcnow()