diff --git a/loops/util.py b/loops/util.py index 137d74c..121a54b 100644 --- a/loops/util.py +++ b/loops/util.py @@ -170,7 +170,7 @@ def getItem(uid, intIds=None, storage=None): def getMigratedItem(uid, storage): t = storage.getUidTable() - stmt = t.select().where(t.c.legacy == int(uid)) + stmt = t.select(t.c.prefix, t.c.id).where(t.c.legacy == int(uid)) newId = storage.session.execute(stmt).first() if newId is not None: return storage.getItem('%s-%i' % newId)