From 1b93e6148b8e928f6590e4073604cdc50d6e0b46 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Wed, 19 Nov 2025 15:57:53 +0100 Subject: [PATCH] more fixes for util.getMigratedItem() --- loops/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loops/util.py b/loops/util.py index 2068af3..e9eb6b4 100644 --- a/loops/util.py +++ b/loops/util.py @@ -170,10 +170,10 @@ def getItem(uid, intIds=None, storage=None): 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)) + stmt = t.select().with_only_columns(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) + return storage.getItem('%s-%i' % tuple(newId)) return None def getObjectForUid(uid, intIds=None):