This commit is contained in:
j 2016-02-12 18:57:55 +05:30
parent 54f5ba33e1
commit a30c66c1a7

View file

@ -529,7 +529,7 @@ def migrate_11():
peer.info['revision'] = last.revision
for l in List.query.filter_by(user_id=u.id):
if l.name:
peer.info['lists'][l.lame] = [i.id for i in l.get_items()]
peer.info['lists'][l.name] = [i.id for i in l.get_items()]
for m in Metadata.query.filter_by(user_id=u.id):
peer.library[m.item_id] = {
'meta': dict(m.data),
@ -554,7 +554,5 @@ def migrate_11():
}
state.db.session.add(t)
state.db.session.commit()
state.shutdown = True
state.downloads.join()
state.downlodas = None
state.downloads.transfers.commit()
return 11