From d3fb58d62c70aa7d0ccbf7f1fb6da56bc9930d92 Mon Sep 17 00:00:00 2001 From: Hannes Plattner Date: Wed, 19 Nov 2025 14:22:59 +0100 Subject: [PATCH] Update util.py column select query --- loops/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loops/util.py b/loops/util.py index 121a54b..2068af3 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(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)