From 85407b56aa336c9043229194da605c7ec57ffb8b Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 17 May 2025 18:58:32 +0200 Subject: [PATCH] repl: `ilike` -> `istartswith` --- src/libdib/repl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libdib/repl.py b/src/libdib/repl.py index 9989cc8..ed904fd 100644 --- a/src/libdib/repl.py +++ b/src/libdib/repl.py @@ -40,7 +40,7 @@ class InteractiveItemSelector(Cmd): ).all(), complete_selection: Callable[[Session, type, str], list[str]] = lambda session, cls, text: session.scalars( select(cls.name) - .where(cls.name.ilike(f'{text}%')), + .where(cls.name.istartswith(text)), ).all(), default: Any | None = None, ):