another fix for util.getMigratedItem()
This commit is contained in:
parent
ca066373c9
commit
dc26d15ece
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue