repl: ilike
-> istartswith
This commit is contained in:
@ -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,
|
||||
):
|
||||
|
Reference in New Issue
Block a user