fix import

This commit is contained in:
j 2014-05-25 22:09:55 +02:00
parent e15ce62ee5
commit af3c133d02

View file

@ -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()