Compare commits

..

No commits in common. "1b93e6148b8e928f6590e4073604cdc50d6e0b46" and "8be18fa43e9c175e3421bbc2be43aba59522e0e8" have entirely different histories.

View file

@ -169,11 +169,11 @@ def getItem(uid, intIds=None, storage=None):
return obj
def getMigratedItem(uid, storage):
t = storage.getUidTable()
stmt = t.select().with_only_columns(t.c.prefix, t.c.id).where(t.c.legacy == int(uid))
t = self.getUidTable
stmt = t.select().where(t.c.legacy == int(uid))
newId = storage.session.execute(stmt).first()
if newId is not None:
return storage.getItem('%s-%i' % tuple(newId))
return storage.getItem('%s-%i' % newUid)
return None
def getObjectForUid(uid, intIds=None):