another fix for util.getMigratedItem()

This commit is contained in:
Helmut Merz 2025-11-19 12:23:10 +01:00
parent ca066373c9
commit dc26d15ece

View file

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